PDA

View Full Version : Hide admins from who is online (forumhome and online.php)


chefy
07-18-2012, 11:47 AM
Mods, Global Mods and Admins have enabled the invisible mode so members can't see them listed in the online list both forumhome and online.php. However these three usergroups also have enabled the option to see other members who have choose to be invisible this way if there is an admin logged in a mod or global mod is able to see the admin in the online list both forumhome and online.php and I don't want that.

I want to hide administrators from the online list so even when mods and global mods have enabled the option to see users who have choosen to be invisible, they will be still unable to see admins logged in.

kh99
07-18-2012, 05:02 PM
There is this mod: https://vborg.vbsupport.ru/showthread.php?t=179115 , but I don't think it completely hides everything (for example I think the last activity date will still tell you when the admin is online).

chefy
07-23-2012, 03:51 AM
Indeed if I edit the template whosonlinebit envolving all of its contents with these lines:

<if condition="$userinfo['userid'] != X">

</if>

The admin with userid 'X' isn't being listed anymore at online.php however I have many various admins so better to filter them all with an usergroup conditional. I have tried these:

<if condition="!is_member_of($bbuserinfo, 6)">
<if condition="$bbuserinfo['usergroupid'] != 6">

However they both make the online.php to simply show nothing (not even members are being listed).

What conditional should I use? Or maybe the whosonlinebit template doesn't support usergroup conditional but only userid conditionals?

kh99
07-23-2012, 06:29 AM
I think you would want:

<if condition="!is_member_of($userinfo, 6)">


(because $bbuserinfo is the "logged in" user looking at the page, so if that user isn't an admin they wouldn't see any users).