PDA

View Full Version : Who's online permissions: hide location?


ceho
01-30-2010, 09:21 AM
Hi,

I couldn't find a setting or a solution searching vB.org. Is there a way to hide the column "location" in the Who is online site (online.php) from certain usergroups?

The site itself should still be visible but certain members should not see what the other ones are currently doing (e.g. writing pm's) or what they are actually watching. Had some troubles with members spying on each other a bit too much. All settings in the usergroup settings are already set to no except for the permission to view the site itself.

Thanks a lot!

Lynne
01-30-2010, 02:41 PM
It's in the usergroup manager under the heading Who's Online Permissions If those are all set to No *in every usergroup they are a member of*, then they should not be able to see the locations of other users in the online page.

ceho
01-30-2010, 03:08 PM
Problem is if I set it all to no the according usergroup is not allowed to see who is online at all. I would like to only switch off the middle column showing the location, you know? Not the whole site. Any idea how to realize it?

Lynne
01-30-2010, 03:12 PM
The only set View Who's Online to Yes and all the others to No.

ceho
01-30-2010, 03:23 PM
So you think there is no way to modify this? This is why I was asking, the yes and no thing is not what I am looking for. Thank you very much for you help.

Lynne
01-30-2010, 03:25 PM
Why is the yes and no thing not what you are looking for? If you hide the location, then they won't see "Viewing PMs" and such.

The other option is to just put a condition around the area in the template and only show it to certain usergroups.

ceho
01-30-2010, 03:31 PM
If you hide the location, then they won't see "Viewing PMs" and such This is what I would like to do.

The other option is to just put a condition around the area in the template and only show it to certain usergroups And here is where I perfectly fail because I have no idea how to do such a thing. Could you help me with that or tell me how to start by an example? I am anything but a programmer...

Lynne
01-30-2010, 06:05 PM
*Why* are the default option in the usergroup manager not working for you? The option to hide location and any info about the location is right there under Who's Online Options. Do you have them set to No? Do you have them set to No in every usergroup (secondary also) that the users are in?

ceho
01-30-2010, 06:34 PM
Hm, so it seems there is something odd going on. I have set it all to no, as said before, please see the first attachment, showing the settings for usergroup A.

The second attachment is showing what a member of usergroup A is seeing when he goes to the who is online section. The location is visible although it is set to no.

Maybe I just thought it was more complicated and in fact there is only a problem with the settings?

Thank you very much Lynne!

Lynne
01-30-2010, 08:26 PM
Is the test user you were using in any other usergroup? You need to set all those settings for that usergroup to no also otherwise the Yes will override the No.

ceho
01-30-2010, 08:36 PM
No, he is not, only in that specific usergroup (which is the normal registered users by the way). And I know from many other registered users that they can see the location as well, although the setting says they can't.

Edit: I just tested another registered user account, it's the same, they can see it.

--------------- Added 1264891838 at 1264891838 ---------------

To exclude a problem with skin I use: I checked the issue using the dafult style, it's the same.

Lynne
01-30-2010, 10:20 PM
OK, well to do it the template way... open up the template whosonlinebit and find this:
<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>To disallow registered users and guests from seeing that and just put 'nothing' in that spot, change it to this:
<td class="alt2" width="35%">
<if condition="$show['member'] AND !is_member_of($bbuserinfo, 2)">
<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>
<else />
&nbsp;
</if>
</td>

You could also do it by plugin if you don't want to edit templates (just set those two variables to nothing if a member of usergroup 2).

Marco van Herwaarden
01-31-2010, 09:00 AM
Please post a print screen of the edit user page showing the primairy and secondary usergroups for the user "Jeroen".

ceho
01-31-2010, 10:12 AM
Here you are. Thanks for helping!

111405

@ Lynne: it worked (of course ;-)), although there now is am empyt column which makes users ask what happened. Is there any chance to hide that column?

111406

Lynne
01-31-2010, 02:10 PM
Here you are. Thanks for helping!

111405

@ Lynne: it worked (of course ;-)), although there now is am empyt column which makes users ask what happened. Is there any chance to hide that column?

111406
Why not just put "Unknown" in that column. You could remove the column, but it would mean editing other templates also - the one with the column heading. If you want to go that route, to find that template to edit, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)