View Full Version : Hide Admin from Who's Online?
Nathan2006
05-05-2006, 04:25 PM
Hello,
I was just wondering if there was anyway to hide the Admin from the Who's Online list?
I know I can use invisibility but I only wanted to not appear on the Who's Online list only
Thank you for any help :)
Boofo
05-05-2006, 05:21 PM
Just do a conditional at the beginning of the template. ;)
Nathan2006
05-05-2006, 05:53 PM
Just do a conditional at the beginning of the template. ;)
I'm such a noob cos I don't know how to do it lol:rolleyes:
Its something in the whosonlinebit but what code do I need to add to it?
This is the code I have in there :)
<tr>
<td class="alt1" width="35%">
<span class="smallfont" style="float:$stylevar[right]"><span class="time">$userinfo[time]</span></span>
<if condition="$show['loggedinuser']">
<a href="member.php?$session[sessionurl]u=$userinfo[userid]" target="_blank">$userinfo[musername]</a>$userinfo[hidden]<if condition="$show['buddy']">+</if>
<else />
<if condition="$show['spider']">$spidertype<else />$userinfo[musername]</if>
</if>
</td>
<td class="alt2" width="35%">
<div>
<span style="float:$stylevar[right]">
<if condition="$show['lockedout']"><img src="$stylevar[imgdir_statusicon]/wol_lockedout.gif" alt="$vbphrase[viewing_forum_closed]" /></if>
<if condition="$show['nopermission']"><img src="$stylevar[imgdir_statusicon]/wol_nopermission.gif" alt="$vbphrase[viewing_no_permission_message]" /></if>
<if condition="$show['errormessage']"><img src="$stylevar[imgdir_statusicon]/wol_error.gif" alt="$vbphrase[viewing_error_message]" /></if>
<if condition="$show['reallocation']"><img src="$stylevar[imgdir_misc]/question_icon.gif" alt="$userinfo[location]" /></if>
</span>
$userinfo[action]
</div>
<if condition="$show['where']">
<div class="smallfont" style="margin-top:1px">
<if condition="$show['subscribed']"><img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /></if>
$userinfo[where]
</div>
</if>
</td>
<if condition="$show['ip']">
<td class="$ipclass"><div class="smallfont">$userinfo[host]<if condition="$show['useragent']"><br />$userinfo[useragent]</if></div></td>
</if>
<if condition="$vboptions['showimicons']">
<td class="alt2" align="center" nowrap="nowrap">
$userinfo[aimicon]
$userinfo[icqicon]
$userinfo[msnicon]
$userinfo[yahooicon]
$userinfo[skypeicon]
</td>
</if>
</tr>
Boofo
05-05-2006, 08:48 PM
Put this at the very top of that file:
<if condition="$userinfo['userid'] != 1">
and this at the very bottom:
</if>
Change the userid to that of the admin you want to not show up in the who's online.
Done. ;)
Nathan2006
05-05-2006, 08:57 PM
Put this at the very top of that file:
<if condition="$userinfo['userid'] != 1">
and this at the very bottom:
</if>
Change the userid to that of the admin you want to not show up in the who's online.
Done. ;)
Thank you Boofo works great!:D
Thanks for your help :cool:
Boofo
05-05-2006, 09:00 PM
It better work great. That's what I use. ;)
No problem. Enjoy! ;)
SaN-DeeP
05-05-2006, 11:21 PM
Put this at the very top of that file:
<if condition="$userinfo['userid'] != 1">
and this at the very bottom:
</if>
Change the userid to that of the admin you want to not show up in the who's online.
Done. ;)
nice trick :) shall be handy for sure.
kofoid
07-25-2006, 07:17 PM
Hi guys - I just posted the question elsewhere... how do I hide myself on the "What's going on" box at the bottom of forumhome?
rjmjr69
04-20-2007, 11:54 PM
Can there be more than one person hidden?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.