![]() |
limit viewing of "currently active users"
I would like to limit the viewing of the list of "currently active users" on the main forum page to 3 user groups only (admin/mod/supermod). I can't seem to find a switch in the settings or a hack on vbulletin.org that addresses this need.
Seem like the syntax shouldn't be to hard, but I don't trust myself to not screw it up. Can someone give me the short answer? IE: add the following to thisorthat template before/after thisorthat code. Thanks, Dave --------------- Added [DATE]1267702664[/DATE] at [TIME]1267702664[/TIME] --------------- Bump to the top. I am assuming this is just a conditional wrapped around the existing code. Can some one throw me a bone? |
Use IF Condition to show to the usergroups that you want. But if they go to yousite.com/online.php they will still be able to see it.
|
AdminCP ---- Usergroups----Usergroup Manager
Edit usergroup & find: Who's Online Permissions Can View Who's Online Yes No <=== choose here whether you want viewing or not is this what you are looking for ? |
Quote:
I am referring to the "currently active users" list that appears on the forum home page in the "What's going on" area. My moderators and I find that a handy tool, but we don't want it visible to the public. Unlike the online.php, "currently active users" only has an "on/off" switch in the adminCP, it doesn't appear in the user group permissions. I was hoping someone could point me to the template I need to edit. I am thinking it is the forum home template. I think I only need to edit the "logged in" section as I have it turned off for visitors. I was hoping for someone to point me to the section of code that need the If Condition in front of it and the /IF at the end, along with the proper syntax to make it happen. Thank you for the replies everyone. Dave --------------- Added [DATE]1267731761[/DATE] at [TIME]1267731761[/TIME] --------------- Quote:
|
Find that part where logged in users is defined and place it inside the if conditional:
<if condition="is_member_of($bbuserinfo, 5,6,7)">the code here</if> and it should do the trick. I don''t use vb 3 but if you would post the appropriate code here I will make the changes for you. |
Thank you for the replies. I think this is the code I need from the forumhome template. Hopefully someone here can confirm I have the correct spot:
PHP Code:
|
NO you have the correct spot.
Here ya go HTML Code:
<if condition="is_member_of($bbuserinfo, 5,6,7)"> |
That should do it.
|
All times are GMT. The time now is 11:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|