User Rank Images (not Usergroup Images/Styling)

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?
 
Upvote 0
http://xenforo.com/community/resources/user-ranks-in-css.430/

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.
 
http://xenforo.com/community/resources/user-ranks-in-css.430/

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

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

Code:
<!-- Start User Ranks -->
 
<xen:if is="{xen:helper userTitle, $user} == 'Administrator'">
<span class="userrank"><img src="styles/flexile/xenforo/ranks/admin.png"></span>
</xen:if>
 
<!-- End User Ranks -->

This will display the rank based on user title and not usergroup.
 
Top Bottom