The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Newbie code mod question
I'm building a template to hold my chat app and I want to restrict users to 2 groups (2) registered and (6) admin. I'm currenting using <if condition="$show['member']"> which does limit non members but it allows the waiting for email confoirmation group.
I have tried <if condition="(is_member_of($vbulletin->userinfo, 2))"> which limits to the registered group but disallows admin. I need something that works for both. Sorry for the daft question but I just don't know php well enough to get this right. Any help would be appreciated. |
#2
|
||||
|
||||
Code:
<if condition="(is_member_of($vbulletin->userinfo, 2)) OR (is_member_of($vbulletin->userinfo, 5)) OR (is_member_of($vbulletin->userinfo, 6)) OR (is_member_of($vbulletin->userinfo, 7))"> |
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
No trouble at all, just add OR (yadda yadda) for each group (changing the number)
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|