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

XF 1.2 How to add rank images to users

Frode789

Active member
#1
So one feature I can't find in Xenforo: How do you create forum ranks? In phpbb3 i had these star images, some special (given by me manually, like VIP Member), and others automatically given by the system depending on the post count. How do you do this?
 

Frode789

Active member
#7
The only way I know is to use usergroups and conditional statements.
Yeah, figured it out.

Code:
            <xen:if is="{$user.message_count} > 500">
                    <dl class="pairsInline">
                        <dt>Roshan</dt>
                        <img src="styles/default/xenforo/ranks/rank_thedaddy.png" />
                        </dl>
            <xen:elseif is="{$user.message_count} > 400" />
                    <dl class="pairsInline">
                        <dt>Thunderhide</dt>
                        <img src="styles/default/xenforo/ranks/rank_spammer.png" />
                    </dl>
<xen:else />
                    <dl class="pairsInline">
                        <dt>Kobold</dt>
                        <img src="styles/default/xenforo/ranks/rank_0.png" />
                    </dl>
                </xen:if>
Etc etc.