PDA

View Full Version : Adding an Icon to Postbit



dmgctrl
Mon 27th Apr '09, 12:20pm
Hi,

I'm new to vBulletin and at a bit of a loss. I would like to add an icon underneath the UserTitle for members of a specific usergroup. They are paying members, and they can have membergroupids of either 6 , 7, 8 or 9 depending on how many months they sign up for. Below is what I am trying, but being so new to vbulletin I cant figure out why its not working.


<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<!-- <if condition="is_member_of($bbuserinfo, membergroupids, 9)"><img src="/icon.png"></if> -->
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$template_hook[postbit_userinfo_left]

I would have thought that the code about would select only members whose membergroupids is 9, but it applies the icon to every member. I have it commented out now, as its not working correctly.

Sorry if this has already been answered, I'm not even sure how to search for it because I dont really know what to search for! Move the thread if its in the worng place.

Thanks for any help you might be able to offer.

Daniel

Wayne Luke
Mon 27th Apr '09, 7:34pm
Use:


<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="is_member_of($post, 9)"><img src="/icon.png"></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$template_hook[postbit_userinfo_left]