I amended this slightly to separate the icon from the javascript that opens the drop-down menu when you click on a username, and to make the icon link to my staff page (staff.php). I also added a second icon for site supporters, this time linking to the subscriptions page (payments.php). There's a not-condition included because I only want one icon to display but you could remove this. Here is the code I used, where 28 is my usergroup for subscribers and the icons were uploaded to my images/misc folder:
Code:
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
<if condition="is_member_of($post, 5,6,7)"><a href="staff.php"><img src="images/misc/shield.png" alt="Staff member" border="0" /></a></if>
<if condition="is_member_of($post, 28) AND !is_member_of($post, 5,6,7)"><a href="payments.php"><img src="images/misc/award_star_gold_3.png" alt="Site supporter" border="0" /></a></if>
</div>
I hope this is useful.