Log in

View Full Version : 3.6 - Image in Postbit!


Tommm
12-01-2006, 01:17 PM
Hey

If a member is part of an additional usergroup, I would like to display a small image in the postbit underneath the reputation count.

How could I do this? I know the basics of template editing, but if statements confuse me somewhat

Thankyou!

Darat
12-01-2006, 01:42 PM
Think this is what you need: https://vborg.vbsupport.ru/showpost.php?p=1129409&postcount=4

Tommm
12-01-2006, 02:20 PM
I tried<if condition="is_member_of($bbuserinfo, 93)"><img src="http://habbos.net/imagehosting/2654560b9444efbb.gif" alt="Duck Clan Supporter" /></if>

<if condition="is_member_of($bbuserinfo, 90)"><img src="http://habbos.net/imagehosting/2654560b9445b1c0.gif" alt="Pink Clan Supporter" /></if>

<if condition="is_member_of($bbuserinfo, 92)"><img src="http://habbos.net/imagehosting/2654560b9446016c.gif" alt="Purple Clan Supporter" /></if>

<if condition="is_member_of($bbuserinfo, 91)"><img src="http://habbos.net/imagehosting/2654560b94464f9e.gif" alt="Red Clan Supporter" /></if>

but didn't have any joy :(

It worked when I replaced bbuserinfo with post.. my bad!

Darat
12-01-2006, 02:24 PM
Try something like:

<if condition="$bbuserinfo['usergroupid'] == '7'">
<img code></img>
</if>

Replace 7 with the usergroup number you want to check for.