View Full Version : Show Memberlist By Usergroup
I'd like to make the memberlist page hidden from guests but I can't find where to set this at. Is this option available somewhere?
Lynne
02-01-2009, 02:55 PM
There isn't an option to do that (why? I don't know.). If you just want to remove it from the navbar, then you may put a condition around it in the navbar template:
<if condition="is_member_of($bbuserinfo,x,y,z)"><td class="vbmenu_control"><a href="$vboptions[bburl]/memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td></if>
Change x,y,z to the usergroup ids for the groups you don't want to see that link. I think the link is in a couple of places in the navbar.
Thanks but I was trying to get it to be like this site has:
http://www.sportfishermen.com/board/members/list/
So they can see it but then get my signup image if they aren't logged in.
Lynne
02-01-2009, 03:54 PM
Then just add this to the top of the page (or use a plugin):
if (!isset($vbulletin->userinfo['userid']) OR $vbulletin->userinfo['userid'] == 0)
{
print_no_permission();
}
Thanks! Sorry but what template would I be adding that to? Just the FORUMDISPLAY template? Add it to the very top? Seems the other if statements on there are using <.
Lynne
02-01-2009, 04:07 PM
Not to the template, that is php code. You would add it to the page. Or use a plugin - probably hook location member_start.
Duh, on memberlist.php. Sorry, I wasn't thinking. I've added it and its working, thanks!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.