View Full Version : <if condition=
question?
11-01-2006, 03:33 PM
What would I use to make it so if a user was in group 13, it does this, else it does that?
ericgtr
11-01-2006, 03:40 PM
Something like this should work, you can also add more groups to the array e.g. array(1,3)
<if condition="in_array($bbuserinfo['usergroupid'], array(1))">
stuff here
<else />
other stuff here
</if>
question?
11-01-2006, 04:37 PM
Thanks :) works like a charm.
ragtek
11-01-2006, 05:24 PM
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
I use <if condition="$show['guest']"> and <if condition="$show['member']"> for members and guests...should I just use the usergroup number?
peterska2
11-01-2006, 09:45 PM
if it is members and guests that you want to differentiate between the the conditions you are using are the best ones to use.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.