PDA

View Full Version : Display image for group and additional members


DevServe
11-26-2006, 12:38 PM
I have the following code to display and image for users assigned to group 15.

<if condition="$post['usergroupid'] == 15"><img alt="Uber Member" width="116" height="15" src="http://www.idevgames.com/forum/themes/uber.gif" /></if>

It works, but I have 4 users that belong to group 15 as "additional members". How would I fix the above so that the image displays for group 15 primary AND secondary users?

Thanks

ragtek
11-26-2006, 01:12 PM
than you must do it with is_member_of
<if condition="is_member_of($bbuserinfo, 15)"> check bouth </if>

but this makes an extraquery!

DevServe
11-26-2006, 01:19 PM
Thanks for your quick reply ragtek. I tried your snippet, but it didn't work. :(

Kezei
11-26-2006, 06:56 PM
Well, where are you entering in this snippet?

DevServe
11-26-2006, 08:59 PM
I'm using postbit_legacy.

I've placed it just below:
<if condition="$show['reputation']"><if condition="$show['reppower']"><div><span id="reppower_$post[postid]_$post[userid]">$vbphrase[reppower]</span>: $post[reppower]</div></strong></if></if>
Thanks,