The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Having trouble with a conditional
I made a quick conditional for Currently Active Users so that only Admins and Supermods would be able to click on the words Currently Active Users to go to Who's Online. The thing is though, when I try to save it, its giving me a parse error saying unexpected < on line 29. Heres the conditional in question:
Code:
<if condition="is_member_of($vbulletin->userinfo,6) OR is_member_of($vbulletin->userinfo,5)><a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a><else />$vbphrase[currently_active_users]</if> EDIT: Well I feel stupid. I was missing a closing " on my conditional. |
#2
|
|||
|
|||
seems like this would be more fitting
Code:
<if condition="$bbuserinfo[usergroupid] == 6" OR "$bbuserinfo[usergroupid] == 5" ......> |
#3
|
|||
|
|||
Quote:
Code:
$bbuserinfo[usergroupid] |
#4
|
|||
|
|||
cool.
i will use yours when making conditionals |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|