The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
conditionals
<if condition="$bbuserinfo[usergroupid] == 6">
TEXT HERE </if> the one above allows admins to see etc but how do i change it to allow say 2 usergroups ? |
#2
|
|||
|
|||
PHP Code:
|
#3
|
||||
|
||||
Quote:
|
#4
|
|||
|
|||
cheers m8
|
#5
|
||||
|
||||
Those checks only work for PRIMARY usergroups. To check if a member has permissions to a usergroup at all you need to use the is_member_of function
<if condition="is_member_of($bbuserinfo, X)"> Where X is the group you want to check. I find it most useful that if I want to hide or display info based on a usergroup (such as say, pain membership), create a usergroup for that specific item and use is_member_of |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|