Log in

View Full Version : question


ZombieAndy
03-14-2005, 02:48 PM
i dont know much about PHP, im still learning.. so this is probally a noob question.

but how would i change this <if> statement to use additional groups rather than the primary group?

<if condition="$post['usergroupid']==14"><div class="smallfont"><i>(<a href="http://www.alienfishtank2.com/forums/forumdisplay.php?f=26">Mafia Member</a>)</i></div></if>

Jolten
03-14-2005, 02:52 PM
<if condition="$post['usergroupid']==14 or $post['usergroupid']==X">

or

<if condition="in_array($post['usergroupid'], array(X,X,X,X,X,X,X))">

I believe that will work.

ZombieAndy
03-14-2005, 02:55 PM
<if condition="$post['usergroupid']==14 or $post['usergroupid']==X">

or

<if condition="in_array($post['usergroupid'], array(X,X,X,X,X,X,X))">

I believe that will work.
the ID is right, the group is 14... but i mean i want the statement to be true if that user is set to like... primary group 1, additional group 14.

a standard if statement dosn't work like this. you see what i mean?