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

User ranks?

#1
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.
 

Jake Bunce

XenForo moderator
Staff member
#4
I don't want to use their rank images.I already made my own ranks for my forum.How can I implant the ones I made.
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.