Log in

View Full Version : Help with usergroup icons in Postbit


jarosciak
05-25-2008, 11:30 AM
Hey guys,



I am trying to add a little icon below the username in each post of the forum. That would be easy on its own, but in my case I want to display different icon for each usergroup. I have Gold and Silver sponsorts, so if user is my Gold Sponsor, I want to show gold icon, if he/she is a Silver sponsor, then silver one.



You get the idea.



How do I condition this in POSTBIT?



I've tried to add this to a POSTBIT, but it doesn't work:





<if condition="is_member_of($bbuserinfo, 9)"><br><img src="gold.gif" border="0"></if>

<if condition="is_member_of($bbuserinfo, 10)"><br><img src="silver.gif" border="0"></if>





This code only shows the icon to a member of the Gold and Silver usergroup



Please let me know how to condition this properly.



Thanks.

Dismounted
05-25-2008, 11:38 AM
<if condition="is_member_of($post, X)">

jarosciak
05-25-2008, 12:52 PM
thanks a bunch, worked like a charm