![]() |
Member Search turned on by usergroup
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.
|
In template memberlist FIND:
Code:
<if condition="$vboptions['usepopups'] AND !$show['usergroup']"> Code:
<if condition="$vboptions['usepopups'] AND !$show['usergroup'] AND (is_member_of($bbuserinfo, 10) or is_member_of($bbuserinfo, 11))"> Code:
<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> Code:
<if condition="is_member_of($bbuserinfo, 10) or is_member_of($bbuserinfo, 11)"> 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 |
Quote:
|
Code:
<if condition="$vboptions['usepopups'] AND !$show['usergroup']"> Code:
<if condition="$show['popups'] AND !$show['usergroup']"> |
Well, I guess that's just a slight difference between your vB3 version and mine (still RC3 :().
|
Would the change still be the same?
|
Can anyone else help me with this?
|
Quote:
|
All times are GMT. The time now is 12:28 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:
|