The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
If then conditional based on user groupid
I am working on a template where some specific items in that template I only want to show up if a user is a member of one or more specific user groups. The logic is as follows:
If user is a member of Group A or Group B or Group C then Display Information X Else Display Information Y It should not matter if Group A, B or C is their primary or secondary group. So for example Group A might be Administrators, Group B Moderators and Group C a custom Group called "People from Mars". The if statement should look to see if the user is any of the 3 user groups and if they are in at least 1 then display the information. Hopefully my logic makes sense, but I can't seem to get it to work right in a template. Can anyone help? Thanks! |
#2
|
|||
|
|||
I think you just need <if condition="is_member_of($bbuserinfo, A, B, C)">
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|