View Full Version : IF part of a usergroup - icon in postbit
Smooth Adam
12-19-2006, 10:01 PM
I want to know how to insert an icon into postbit, or anywhere for that matter, when a user is part of a certain usergroup.
I'm guessing its the same theory as this modification (https://vborg.vbsupport.ru/showthread.php?t=133068), but a little help would be nice.
Thanks for any help received!
paul41598
12-19-2006, 10:09 PM
<if condition="is_member_of($bbuserinfo, x,x,x)">
Icon Here
</if>
Replax "x" with usergroup number
Smooth Adam
12-19-2006, 10:23 PM
<if condition="is_member_of($bbuserinfo, x,x,x)">
Icon Here
</if>
Replax "x" with usergroup number
Thanks for the quick reply. I have the code inserted below, but it doesn't seem to be working. It puts it on everyone's postbit even if they are not part of that group. The usergroup id is 12.
<if condition="is_member_of($bbuserinfo, 12)"><img src="link to image"></if>
SaN-DeeP
12-19-2006, 10:26 PM
I have a premium members usergroup (usergroup id = 27), I would like to display premium user rank or icon or html markup for this usergroup which should be visible only to premium members, moderators, super-moderators and administrators.
Can someone guide how this can be done ?
Thanks.
paul41598
12-19-2006, 11:31 PM
Thanks for the quick reply. I have the code inserted below, but it doesn't seem to be working. It puts it on everyone's postbit even if they are not part of that group. The usergroup id is 12.
<if condition="is_member_of($bbuserinfo, 12)"><img src="link to image"></if>
Sorry try this:
<if condition="$post[usergroupid]==6">Code Here</if>
Smooth Adam
12-20-2006, 12:58 AM
I'm sorry that doesn't seem to work either...
I found the solution in the 3.5 forums:<if condition="is_member_of($post,USERGROUPID)">Image Code</if>
Replace USERGROUPID with your usergroup's id number. My usergroup's number is 12:
<if condition="is_member_of($post,12)"><img src="URL"></if>
Thanks for the help Paul!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.