View Full Version : Member Search turned on by usergroup
JustAskJulie
07-14-2004, 08:49 PM
Can someone tell me if it would be possible to put a conditional to allow only certain usergroups to search the Member List? And what that conditional would be? I don't want it turned on in general but I would like to allow certain usergroups to search the list.
Andreas
07-14-2004, 09:17 PM
In template memberlist FIND:
<if condition="$vboptions['usepopups'] AND !$show['usergroup']">
REPLACE that with
<if condition="$vboptions['usepopups'] AND !$show['usergroup'] AND (is_member_of($bbuserinfo, 10) or is_member_of($bbuserinfo, 11))">
Still in the same template FIND
<td class="vbmenu_control" id="memberlist_search"><a href="memberlist.php?$session[sessionurl]do=search">$vbphrase[search_members]</a> <script type="text/javascript"> vbmenu_register("memberlist_search"); </script></td>
REPLACE that with
<if condition="is_member_of($bbuserinfo, 10) or is_member_of($bbuserinfo, 11)">
<td class="vbmenu_control" id="memberlist_search"><a href="memberlist.php?$session[sessionurl]do=search">$vbphrase[search_members]</a> <script type="text/javascript"> vbmenu_register("memberlist_search"); </script></td>
</if>
10 and 11 are examples for the IDs of usergroups you want to grant access,
Use as many OR clauses ys you've got usergroups which should have access.
However, this will NOT stop them from searching the memberlist - it will just remove the links & form.
If you want to reliable prevent unspecified usergroups from searching the memberlist you will have to create a new usergroup setting "Can search memberlist [yes/no]" and check for this permission in memberlist.php
JustAskJulie
07-15-2004, 07:07 PM
However, this will NOT stop them from searching the memberlist - it will just remove the links & form.
If you want to reliable prevent unspecified usergroups from searching the memberlist you will have to create a new usergroup setting "Can search memberlist [yes/no]" and check for this permission in memberlist.php
Can you tell me how to do this?
JustAskJulie
07-15-2004, 07:10 PM
<if condition="$vboptions['usepopups'] AND !$show['usergroup']">
I'm not finding this line.... The closest I find is:
<if condition="$show['popups'] AND !$show['usergroup']">
Andreas
07-15-2004, 07:13 PM
Well, I guess that's just a slight difference between your vB3 version and mine (still RC3 :().
JustAskJulie
07-21-2004, 06:21 PM
Would the change still be the same?
JustAskJulie
08-20-2004, 03:40 PM
Can anyone else help me with this?
illPhever
10-14-2004, 03:16 AM
However, this will NOT stop them from searching the memberlist - it will just remove the links & form.
If you want to reliable prevent unspecified usergroups from searching the memberlist you will have to create a new usergroup setting "Can search memberlist [yes/no]" and check for this permission in memberlist.php
Can you tell me how to do this?
i've been trying to do the same thing. can anyone assist?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.