PDA

View Full Version : Mod to restrict to view members list?


Charlie98902
04-07-2007, 10:19 PM
Is there a mod or one that can be made to restrict users from viewing the members list? I want to be able to allow mods, super mods, and admins to view.

HMBeaty
04-07-2007, 10:22 PM
I can make a quick small one via template edit if you'd like

Ok, in your navbar find:
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
And replace with:
<if condition="is_member_of($bbuserinfo, 5,6,7)"><td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td></if>
This will show the memberlist link in the navbar to ONLY to mods, supermods, and admins

I'll come up with something a little better later

Charlie98902
04-07-2007, 10:42 PM
Thanks, I'll try this out today or tomorrow. I will also be watching for an xml upload plugin or something too.

Logikos
04-08-2007, 12:09 AM
I can make a quick small one via template edit if you'd like

Ok, in your navbar find:
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
And replace with:
<if condition="is_member_of($bbuserinfo, 5,6,7)"><td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td></if>
This will show the memberlist link in the navbar to ONLY to mods, supermods, and admins

I'll come up with something a little better later
That will only hide the link. Users can still view the memberlist if they know the URL.

HMBeaty
04-08-2007, 01:23 AM
That will only hide the link. Users can still view the memberlist if they know the URL.

I know, so back to my previous post....

This will show the memberlist link in the navbar to ONLY to mods, supermods, and admins

I'll come up with something a little better later

-------------------------------------------------------------------------------

Mod is finished ;)

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

Logikos
04-08-2007, 03:15 AM
Add a new plugin

Product: vBulletin
Hook Location: memberlist_start
Title: Restrict to view members list
Execution Order: 5
Plugin PHP Code:


if (!is_member_of($vbulletin->userinfo, 5,6,7, false))
{
print_no_permission();
}


Active: yes

Change 5,6,7 to all usergroupids that are allowed to view the memberlist

HMBeaty
04-08-2007, 03:16 AM
Read the post above yours

Logikos
04-08-2007, 03:27 AM
I did, I provided a quick way to do it without hacking the files.

HMBeaty
04-08-2007, 04:23 AM
I did, I provided a quick way to do it without hacking the files.

Updated to 1.1.0 :o I didn't think to use a plugin, lol. So thanks to you Ken

puertoblack2003
05-23-2009, 12:16 PM
Is there a mod or one that can be made to restrict users from viewing the members list? I want to be able to allow mods, super mods, and admins to view.


you can do it without any template or plugin..go to the usergroup settings and check no....