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

User ranks?

Discussion in 'Styling and Customization Questions' started by KenX, Aug 10, 2012.

  1. KenX

    KenX Member

    I am new to xenforo so I wanted to ask how can I add rank images to user groups.That will show under the custom title.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. KenX

    KenX Member

  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Use the conditions from this guide:

    http://xenforo.com/community/resources/user-ranks-in-css.430/

    Specifically, edit this template:

    Admin CP -> Appearance -> Templates -> message_user_info

    And use code like this to conditionally display ranks for specific users, groups, admins, etc:

    Code:
    <xen:if is="{$user.is_admin}">
    RANK FOR ADMIN
    </xen:if>
     
    <xen:if is="{$user.is_moderator} AND !{$user.is_admin}">
    RANK FOR MODERATOR
    </xen:if>
     
    <xen:if is="{$user.user_group_id} == 5">
    RANK FOR PRIMARY MEMBERS OF USER_GROUP_ID 5
    </xen:if>
    
    That's the idea.
     

Share This Page