The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
<if condition=
What would I use to make it so if a user was in group 13, it does this, else it does that?
|
#2
|
||||
|
||||
Something like this should work, you can also add more groups to the array e.g. array(1,3)
HTML Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(1))"> stuff here <else /> other stuff here </if> |
#3
|
|||
|
|||
Thanks works like a charm.
|
#4
|
|||
|
|||
it is better if you use
<if condition="is_member_of($bbuserinfo, 2, 6, 7)"> so it will check primary? and secondary usergroup but it makes an extraquery |
#5
|
|||
|
|||
I use <if condition="$show['guest']"> and <if condition="$show['member']"> for members and guests...should I just use the usergroup number?
|
#6
|
|||
|
|||
if it is members and guests that you want to differentiate between the the conditions you are using are the best ones to use.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|