1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Show usergroup in messages

Discussion in 'XenForo Questions and Support' started by Geoffrey, Aug 26, 2012.

  1. Geoffrey

    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.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    There is no such feature, but you can do it manually with template conditionals:

    Admin CP -> Appearance -> Templates -> message_user_info

    <xen:if is="{xen:helper ismemberof, $user, 4}">
    GROUP 4
    <xen:if is="{xen:helper ismemberof, $user, 5}">
    GROUP 5
    <xen:if is="{xen:helper ismemberof, $user, 6}">
    GROUP 6
    jt2011 likes this.

Share This Page