PDA

View Full Version : Help with usergroup icons.


jarosciak
Sun 25th May '08, 10:28am
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.

Jake Bunce
Mon 26th May '08, 12:29am
Use $post in place of $bbuserinfo. $post is for the author of the post. $bbuserinfo is for the current logged in user.