XF 1.1 Show usergroup in messages

Geoffrey

Active member
Hi, I would like to know if there is a way to display a user's group in their message profile (like where it shows Posts, Join Date, and other custom profile fields). I realize custom user titles can do this, but once a user's title is changed to be "custom", the group they're in no longer is displayed anywhere.

I checked Message Elements in Style Properties but didn't see anything related to showing a user's group in there. Thanks for your help in advance.
 
There is no such feature, but you can do it manually with template conditionals:

Admin CP -> Appearance -> Templates -> message_user_info

Code:
<xen:if is="{xen:helper ismemberof, $user, 4}">
GROUP 4
</xen:if>

<xen:if is="{xen:helper ismemberof, $user, 5}">
GROUP 5
</xen:if>

<xen:if is="{xen:helper ismemberof, $user, 6}">
GROUP 6
</xen:if>
 
Top Bottom