PDA

View Full Version : Showing usergroup title in postbit


misterfade
05-15-2006, 12:18 PM
I was searching around but couldn't find an answer.

Is this possible in the postbit template? I'd like to show all the usergroups that a member is a part of.

Thank you in advance!

Chroder
05-15-2006, 03:30 PM
This is a bit complicated, there may be a simpler name, but this works:
{$GLOBALS[vbulletin]->usergroupcache[$post[usergroupid]][title]}

misterfade
05-15-2006, 04:41 PM
Yeah that works nicely! Thanks, but any idea on how to show ALL the usergroups a member is a part of? For example, if a user is Registered but also an 'additional user' to another group?

SHalliday
06-02-2006, 02:08 PM
Yeah that works nicely! Thanks, but any idea on how to show ALL the usergroups a member is a part of? For example, if a user is Registered but also an 'additional user' to another group?
I also want to do this but so far no luck. Tried

<!-- member groups -->
<if condition="$show['membergroups']">
<br />
$membergroupbits
<br />
</if>
<!-- member groups -->

but it did not work.