The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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.
|
#2
|
||||
|
||||
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)"> <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> 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 |
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
Code:
<if condition="$vboptions['usepopups'] AND !$show['usergroup']"> Code:
<if condition="$show['popups'] AND !$show['usergroup']"> |
#5
|
||||
|
||||
Well, I guess that's just a slight difference between your vB3 version and mine (still RC3 ).
|
#6
|
|||
|
|||
Would the change still be the same?
|
#7
|
|||
|
|||
Can anyone else help me with this?
|
#8
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|