PDA

View Full Version : restrict memberlist


freesurfer
11-17-2002, 12:37 AM
Hi,

Anyone know if there is a way to restrict viewing of memberlists to Admins and moderators only ?

regards,
freesurfer

Erwin
11-17-2002, 04:54 AM
Open memberlist.php:

Find:


if (!$enablememberlist) {
eval("standarderror(\"".gettemplate("error_nomemberlist")."\");");
exit;
}


Replace with:


if (!$enablememberlist or $bbuserinfo[usergroupid]!=5 or $bbuserinfo[usergroupid]!=6 or $bbuserinfo[usergroupid]!=7) {
eval("standarderror(\"".gettemplate("error_nomemberlist")."\");");
exit;
}



Untested, but should work.

freesurfer
11-18-2002, 06:31 AM
Tnx. Erwin :)

But i cant get that to work;
Sorry! The Administrator has disabled the list of members.

regards, freesurfer

Dean C
11-18-2002, 05:34 PM
There's the option in the admin cp i think :)

In the 'vbulletin options' section

Check you dont have it turned off ?

- miSt

Erwin
11-18-2002, 09:24 PM
In Admin CP, vBulletin Options, turn memberlist to ON first. Then apply my mini-hack.

xug
06-14-2003, 02:17 PM
Erwin, that code doesn't seems to work for me!
Could you check if it's the correct code?
Thank you.