Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
offline/online
Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 7, 2012 - 9:42 pm

Would it be possible to have the 'online' text show up in color?  I know there already is an icon that do the job but just asking.

 

All I know is the line that handle this is :

 

sp_PostIndexUserStatus('tagClass=spCenter spPostUserStatus', __sp('Online'), __sp('Offline'));

 

Maybe doing it this way ?

 

sp_PostIndexUserStatus('tagClass=spCenter spPostUserStatus', __sp('Online&color=#ff0000'), __sp('Offline'));

 

Ok maybe not exactly, I'm not an expert.  wink

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 8, 2012 - 4:58 am

You need to look at the 'spPostUserStatus' class in the CSS file.
However, I do see we are not differentiating there between online and offline so I will open a ticket to see how easy that would be to add.

andy-signature.png
YELLOW
SWORDFISH
Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2012 - 10:16 pm

I see in the changelog that something was done about this...  looking in the functions file I see onlineLabelClass but how to use it?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2012 - 10:26 pm

add a new style and color it (or other) how you want...

span.spPostUserStatusOnline

Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2012 - 10:35 pm

I add this the the custom styles of my WP theme or is there a way to define it to /styles/overlays/default.php?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2012 - 10:39 pm

assuming you have your own sp theme, I would add it to that... the path you put is not valid... if you dont have your own sp theme, then yes, add it to your wp theme...

Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2012 - 10:49 pm

I tried to add $spPostUserStatusOnline = 'color: #FF0000'; as a test to my SP theme but nothing happen.  Sorry if I look dumb.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2012 - 10:56 pm

that is not css... did you try to add it to the overlay??? it would need to be added to the theme... like

span.spPostUserStatusOnline { color: #ff0000;}

Avatar
SPQC
Member
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2012 - 11:02 pm

Well I wanted to add it to S:P theme instead of the custom style from the WP theme, which is already having many lines I added it there to make change to how S:P look.  I don't know if it's the good place or ideal place to put all those styling changes but yet that's what I did since it works.  I thought it would looks cleaner to move them in the S:P theme files.

 

Nevermind, I'll do it that way.  It's just one more line... wink Thanks.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 12, 2012 - 11:11 pm

it would be... but are you confusing theme css file with the overlay? I was suggesting adding it to, for example, wp-content/sp-resources/forum-themes/default/styles/default.php... not the overlay file... and of course, in your theme main style file...

if you are using a stock sp theme, then the wp theme is the place to put it... but if your own sp theme, then put it there...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620