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
Disable Online/Offline status in forum?
Avatar
Stan Dahl
Member
sp_UserOfflineSmall Offline
Jun 1, 2015 - 5:38 pm

Is there an easy way to disable the Online/Offline status (green light/red light) for members in the forum?

 

Thanks.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jun 1, 2015 - 6:34 pm

Hey Stan,

Sure, you can disable this, but a couple of questions. Firstly, are you looking to disable this for everybody? i.e just get rid of it all together? Or are you looking to just disable it for members, and leave it visible for admins / mods (as you said 'for members')?

If you just want to get rid of it all together, you can just add the following to a child theme stylesheet:

#spMainContainer .spTopicPostSection .spPostUserStatus {
    display: none;
}

If however, you want to leave it visible for admins / mods but hide it for everyone else, each post includes a class designating the user group of the user who posted so this is easily doable, but we would need to know either what usergroup you want to hide it for, or what usergroup you want to have it display for. The best way of finding this is inspecting a post to get the class (i.e inspecting spTopicPostSection should be followed by spType-YourUsergroup).

As I mentioned, this would need to be added to a child theme stylesheet, to make sure the change is retained after updating. You can do this easily by downloading a child theme framework from the downloads page if you've not already done so.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 1, 2015 - 9:32 pm

As Ike mentions, multiple ways to skin this cat...

if you simply want to globally remove, I would simply remove the template tag from your sp theme spTopicView.php template file:

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

then none displayed....

alternately, each user can disable it form themselves in their forum profile...

or as Ike mentions, more options...

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: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625