Log in

View Full Version : Usergroup If statement


TeamDevotion
05-09-2007, 08:19 PM
K, so i'm writing up this script and im using an if statement.

<if condition="$userinfo[usergroupid]==9">
Show this



BUT, this only works if the user group id is their primary one, it doesn't work for secondary usergroups, is there something i should be using other than "usergroupid"?

Adrian Schneider
05-09-2007, 08:22 PM
<if condition="is_member_of($bbuserinfo, 9)">

HMBeaty
05-09-2007, 08:22 PM
<if condition="is_member_of($bbuserinfo, x,y,z) ">
</if>

TeamDevotion
05-09-2007, 08:25 PM
<if condition="is_member_of($bbuserinfo, 9)">
Worked perfectly, thank you sir.... theres no rep on this forum?? =[