Quote:
Originally Posted by bananalive
<if condition="$post[usergroupid] == B && is_member_of($post, X)"><img src="images/misc/airforce.gif"></if>
So the primary usergroup has to be 'B' and X must be secondary usergroup (air force).
|
But I am in need of it to work with multiple primary usergroups. So if the user is part of primary usergroup 2, 3, 4, 5, 6 or 7 and their secondary group is 8, then it will show the image.
Right now I have the code, like I posted in my first post, repeated over and over again changing the primary usergroup number each time. I figure there has to be a way to condense this code.