Quote:
Originally Posted by pds
Can I have multiple usergroups listed for the "PRIMARYid2" variable? if so, would they simply be separated by commas?
My "Site Supporter" usergroup is always the secondary group. I want the site supporter button to show up no matter what their primary group is. Now that i type this out i wonder if i am misunderstanding something and this is a terribly stupid question?!?
|
I'm sorry but I'm not quite understanding what you're telling me. maybe you're saying you have a few different primary groups and you want the site supporter button to show up for each of those members who belong to different primary groups? in that case, you will need to create an <if></if> statement for each condition. Here's an example of mine on my forums:
Code:
<!-- Site Contributor button -->
<br /><if condition="$post[usergroupid] == 5 and is_member_of($post, 11)"><img src="images/misc/supporter2.gif"></if>
<if condition="$post[usergroupid] == 6 and is_member_of($post, 11)"><img src="images/misc/supporter2.gif"></if>
<if condition="$post[usergroupid] == 7 and is_member_of($post, 11)"><img src="images/misc/supporter2.gif"></if>
<if condition="$post[usergroupid] == 9 and is_member_of($post, 11)"><img src="images/misc/supporter2.gif"></if>
<if condition="$post[usergroupid] == 10 and is_member_of($post, 11)"><img src="images/misc/supporter2.gif"></if>
<if condition="$post[usergroupid] == 11"><img src="images/misc/supporter2.gif"></if>
<!-- / Site Contributor button -->
anyway, you
should be able to seperate ADDITIONAL usergroups with commas like this:
Code:
<!-- Site Supporter Code -->
<if condition="$post[usergroupid] == 2 and is_member_of($post, 9,10,11,12)"><img src="images/misc/supporter.gif"></if>
<!-- / Site Supporter Code -->