View Single Post
  #2  
Old 12-11-2014, 10:10 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 129,758
Kyttias is on a distinguished road
Default

Try commenting out $onlineLink->setLineBreak(TRUE); in view/onlineview.php? If you add a comma after the span with the username, it'll be showing up after even the last one, but that can't be helped (and works out well, if you left in the Total Visitors:). In addition to the comma you added after the username, you'll want to add a space, too. ^^

The class .onlinelistt is giving the span holding the username a width of 17%. It's being defined in **root**/css/online.css, so you can safely remove the width line.

It's hard for me to test this since I'm the only member on my site. @_@ But to recap, the entire while statement in onlineview.php should now look like this:

PHP Code:
while($username $stmt->fetchColumn()){
            
$user = new Member($username);
            
$user->getprofile();
            
$onlineLink = new Link("profile/view/{$username}");
            
$onlineLink->setClass("onlinelist");
            
$onlineText "<span class='onlinelistt'>{$user->username}, </span>";                      
            
$onlineLink->setText($onlineText);
            
$document->add($onlineLink);                     
        } 
And I think you already found the line to modify in lang/lang_online.php to remove the top of the pseudo-table that was going on, so I won't need to go into that. ^^
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 12-11-2014 at 10:25 AM.
Reply With Quote