The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
need a quick if statement pls
i wont to only show sumthing to 3 usergoups how would i structure the IF in the vb3 template ?
<if usergroup== 1,2,3(usergroupid) MY CODE HERE</if> |
#2
|
||||
|
||||
HTML Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(1,2,3))">stuff</if> |
#3
|
||||
|
||||
so i replcace 123 with the usergroup ids i want info to be displayed to cheers boss
|
#4
|
||||
|
||||
Yep, just put your own comma seperated list of ids
|
#5
|
||||
|
||||
sorted werks gr8 mate cheers
|
#6
|
||||
|
||||
question, if we had an array set in the php code how would the if statement in the template look?
|
#7
|
||||
|
||||
PHP Code:
|
#8
|
||||
|
||||
Quote:
PHP Code:
HTML Code:
<if condition="in_array($somevar, $var)">stuff</if> |
#9
|
|||
|
|||
Quote:
Code:
<if condition="is_member_of($array_with_userid_key, usergroupid) or is_member_of($array_with_userid_key, usergroupid) or ... contents </if> Code:
<if condition="can_moderate()"> . . . </if> |
#10
|
||||
|
||||
hey filb hows the VBMS for vb3 going?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|