PDA

View Full Version : <if condition=> question.


UltimateOreo!
07-01-2009, 09:59 PM
Hi, I'm looking for an "<if condition="> command that I can use to display a link to everybody but 3 groups.

ry215
07-01-2009, 10:11 PM
<if condition="in_array($userinfo[usergroupid], array(5,6,7)">
//show
</if>

UltimateOreo!
07-01-2009, 11:20 PM
Not working.

MAORBARI
07-01-2009, 11:31 PM
<if condition="$bbuserinfo['usergroupid'] == 6 || $bbuserinfo['usergroupid'] == 7 || $bbuserinfo['usergroupid'] == 8">
//content
</if>

UltimateOreo!
07-01-2009, 11:33 PM
A friend helped me out, this is the one that I used.

<if condition="in_array($userinfo['usergroupid'], array(2,17))">
</if>

MAORBARI
07-01-2009, 11:37 PM
ok but i wanna to warning that sometimes it is have errors ad it is show the content to the other usergroups
but with my way it is ok it is with no error.

Dismounted
07-02-2009, 04:59 AM
<if condition="!is_member_of($bbuserinfo, X, Y, Z)">
This checks both primary and secondary usergroups.