Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-11-2014, 08:00 AM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 16,520
parayna is on a distinguished road
Default Who's Online page

Hey guys. How would you make it so that the Who's Online page on your site displays names like this:

USERNAME, USERNAME, USERNAME, USERNAME (etc)

So like each name is seperated by only a comma and is on the same line and not underneath each other like in the table (the default one where there is multiple fields filled in). It would only go onto the new line if/when the last name is too big to fit in the space left on the page, in which case it would go underneath the first name.

Basically I have already removed the other fields as I didn't think that my members would like their gender being displayed, or their money (as has been the case on a few sites, people have started begging those with loads of money to donate to them) And the nickname and how many pets people had fields just seemed pointless to me, for my site at least. At the moment it displays names like this:

USERNAME,
USERNAME,
USERNAME,
(etc)

How would I go about fixing it? I have been tinkering with the code but nothing I do/look up seems to help... would it be to do with the CSS, or the view file? Or something? XD

Thanks,

~Parayna
Reply With Quote
  #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: 88,425
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
  #3  
Old 12-11-2014, 12:20 PM
parayna's Avatar
parayna parayna is offline
Member
 
Join Date: May 2013
Location: Devon, UK
Posts: 342
Gender: Female
Credits: 16,520
parayna is on a distinguished road
Default

Thank you! It worked! ^_^
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Online list ... and a Stats Page for Players Missy Master Questions and Supports 2 07-07-2014 09:58 AM
Online Page Nieth Questions and Supports 7 11-26-2013 06:10 AM
Problem with Online page and Admin Profiles? parayna Questions and Supports 5 11-03-2013 07:47 PM
Who's Online Page Yuki Night Questions and Supports 5 01-28-2013 11:53 PM
Who's Online Missy Master Mys v1.1.x Mods 4 02-26-2011 09:26 AM


All times are GMT -5. The time now is 11:30 AM.

Currently Active Users: 9779 (0 members and 9779 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636