PDA

View Full Version : Hide Admin & Super Mod Whos Online Location


tobybird
11-18-2007, 09:42 PM
I need to determine if there's a way I can hide the location of our admins and super mods from regular members when viewing the Who's Online page.

"Can View Detailed Location Info for Users" is set to No in the usergroup permissions, but what is visible is still too much information.

Also, what I've found while searching doesn't seem to work with the current release of vB.


I'm assuming I could modify this bit of the whosonlinebit template, but I'm not 100% sure what to add.

<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>

The only thing I can think of is an AND !is_member_of condition, but I think I'm on the wrong track with that. I don't want to restrict viewing of other members locations...just the admins and super mods.

I'd really appreciate any help with this!

Thanks!

Marco van Herwaarden
11-19-2007, 05:41 AM
If show detailed is set to no for regular members, what information is still displayed that you don't want?

tobybird
11-19-2007, 10:15 AM
Members are able to see whether or not we are viewing the Admin/Moderators Control Panel and/or any one of our private (not hidden) access request forums. Our private forums deal with fairly sensitive personal topics, and as "staff" we must be able to view these. Our members know this, but we would prefer it not be so terribly obvious.


The screen shot below shows what a regular member would see if I were to access the Admin Panel:




ETA: Just one more thing... I realize this request seems pretty minimal and borderline silly. Unfortunately, we have a greater need for this now. lol Typical drama that comes along with a board full of women. :p

tobybird
11-20-2007, 11:06 AM
Sorry to bump this. Would a modification to the following line in the online.php file be the way to go? I'm just not sure how to adjust this for an entire usergroup...

$userinfo["{$vbulletin->userinfo['userid']}"]['location'] = '/online.php';

if (!$foundviewer AND $vbulletin->userinfo['userid'] AND ($vbulletin->GPC['who'] == '' OR $vbulletin->GPC['who'] == 'members'))
{ // Viewing user did not show up so fake him
construct_im_icons($vbulletin->userinfo);
$userinfo["{$vbulletin->userinfo['userid']}"] = $vbulletin->userinfo;
$userinfo["{$vbulletin->userinfo['userid']}"]['location'] = '/online.php';
$userinfo["{$vbulletin->userinfo['userid']}"]['host'] = IPADDRESS;
$userinfo["{$vbulletin->userinfo['userid']}"]['lastactivity'] = TIMENOW;
fetch_musername($userinfo["{$vbulletin->userinfo['userid']}"]);
$userinfo["{$vbulletin->userinfo['userid']}"]['hidden'] = iif($vbulletin->userinfo['invisible'], '*');
$userinfo["{$vbulletin->userinfo['userid']}"]['invisible'] = 0;


And if not, would it be easier to hide all admins and supermods completely from the WOL page rather than hide just their location? I'm trying to work through this and not having the greatest luck. Hopefully, I'm missing something minor. Any sort of guidance would be greatly appreciated. Thanks!

tobybird
11-23-2007, 02:29 PM
Last bump. I can't imagine this is as difficult as it's appearing. I'm not looking for hand holding....just any thoughts on how I would begin. Thanks :)

Analogpoint
11-23-2007, 05:59 PM
Something like this might work for you. (this is part of the whosonlinebit template) <td class="alt2" width="35%">


<if condition="in_array($userinfo[displaygroupid], array(5, 6)) AND !is_member_of($bbuserinfo, 5, 6)">
<b>$vbphrase[unknown_location]</b>
<else />

<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>

</if>

</td>

tobybird
11-24-2007, 10:26 AM
Analogpoint, I can't thank you enough! I tweaked it just a bit to change the location, lol which is minor to say the least. Anyway, this is exactly what we needed.

Thanks again!

dtv100
11-24-2007, 10:36 AM
to hide what i was doing on who online I use this mod :

https://vborg.vbsupport.ru/showthread.php?t=145428

tobybird
11-24-2007, 11:07 AM
to hide what i was doing on who online I use this mod :

https://vborg.vbsupport.ru/showthread.php?t=145428

lol That certainly would have saved me some time. I swear... I searched and searched for a mod and never ran across this one.

Analogpoint
11-24-2007, 03:21 PM
Analogpoint, I can't thank you enough! I tweaked it just a bit to change the location, lol which is minor to say the least. Anyway, this is exactly what we needed.

Thanks again!You're welcome.

to hide what i was doing on who online I use this mod :

https://vborg.vbsupport.ru/showthread.php?t=145428

Good find.