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

Discussion in 'Styling and Customization Questions' started by Frode789, Feb 1, 2014.

  1. Frode789

    Frode789 Active Member

    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?
  2. 1BJK903

    1BJK903 Active Member

    Admin CP --> Users --> Trophy User Titles is one to start.

    Or are you trying to do something else?
  3. Frode789

    Frode789 Active Member

    I need to assign images, not text rank titles. Also, by post count, not point count.
  4. 1BJK903

    1BJK903 Active Member

    Good one... Don't know mate.
  5. Frode789

    Frode789 Active Member

    :\ It is incredible that this isn't a feature! I thought this was basic on all forum software. It is so easy to add. I could not find a addon for it either.
  6. Blue

    Blue Well-Known Member

    The only way I know is to use usergroups and conditional statements.
  7. Frode789

    Frode789 Active Member

    Yeah, figured it out.

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

Share This Page