![]() |
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. |
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))"> |
Quote:
|
No trouble at all, just add OR (yadda yadda) for each group (changing the number)
|
All times are GMT. The time now is 11:44 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:
|