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

User Rank Images (not Usergroup Images/Styling)

Discussion in 'Closed Suggestions' started by Luxus, May 28, 2012.

  1. Luxus

    Luxus Well-Known Member

    Today I was working on the User Ranks of registered users and noticed you can't define rank images. I am not talking about usergroup styling here. This is completly different. By default there are the following user ranks:
    • New Member
    • Member
    • Active Member
    • Well-Known Member
    Other forum software have user ranks too, except that you can add to each rank an image. XenForo doesn't allow you to give registered users based on their achieved ranks images.

    So I suggest this feature to be implemented in XenForo 1.2 :)

    PS: If an add-on exists, that implements this feature, can somebody please give me a link to it?
  2. Galexrt

    Galexrt Member

    I search something like this too.
  3. MagnusB

    MagnusB Well-Known Member


    That can easily be adapted to use images as well, I think there was something that used images as well, but I can't find it. I did a small customization of that, so that it works with ranks, and you don't have to add conditionals, it can be achieved purely through extra.css:
    User Ranks in CSS

    I haven't had the time to look through it again, IIRC there are some small problems with using that method.
  4. Galexrt

    Galexrt Member

  5. Luxus

    Luxus Well-Known Member

    That's not what I'm looking for. The resource you posted is yet again usergroup based styling stuff. It can't tell the difference between a member in the usergroup "registered members" with the user rank "New Member" and a member in the same usergroup with the user rank "Well-Known Member".
  6. Lone Wolf

    Lone Wolf Well-Known Member

    That's easy, Jake Bunce showed me how to do it. Replace the code in the 'message_user_info' add-on above with this...

    <!-- Start User Ranks -->
    <xen:if is="{xen:helper userTitle, $user} == 'Administrator'">
    <span class="userrank"><img src="styles/flexile/xenforo/ranks/admin.png"></span>
    <!-- End User Ranks -->
    This will display the rank based on user title and not usergroup.
  7. Luxus

    Luxus Well-Known Member

    Never mind. I have accomplished it the way I explained it here :)

Share This Page