• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

User Status Ribbons (based on Usergroups)

I'm a total CSS newbie... :rolleyes:
How could I add an image next to user title? (see for example the star in the attached image)


  • star.webp
    5.9 KB · Views: 72
For anyone who wants to use this a little easier, then you can use this quick mod I did, which enables you to use Jaxels user ribbons and control them via the style properties. I included the ability to have four controlled... not sure anyone would want that many, but four nonetheless.

Still have to do template edit in message_user_info, add:

<xen:if is="@jaxelUserRanksActive"><xen:include template="jaxel_userranks" /></xen:if>


<xen:if is="!{$isQuickReply}">

Then install the attached .xml as an addon.

This won't matter what XF version you run, as its styled uniquely using its own templates, so upgrades won't affect it other than the template edit above, which I find easier to manage than dumping lots of code into a template directly.

Screen shot 2011-11-18 at 4.21.49 PM.webp

Screen shot 2011-11-18 at 4.21.36 PM.webp

I did try to achieve this using the hook system, but couldn't work out how to parse the correct parameters when using hooks, which aren't otherwise required using template edit directly.

If anyone knows how to solve that one, then this mod is also posted @ http://xenforo.com/community/threads/have-no-idea-how-to-get-mod-working.23345/ with the hook in place, that produces the error noted on that thread.


Thats brilliant, thanks Anthony :)

Would there be a way of issuing ribbons to people based on either their username or user id, rather then just usergroup?
Would there be a way of issuing ribbons to people based on either their username or user id, rather then just usergroup?
Well, that can be done, but if you wanted to do that through this method it would be impracticable, because every userid would require an entire field component for "active" "userid" & "rank title".

If you had specific users you wanted to add, then you're either better off to add them to the template directly, or if you had a small group of users, put them into their own usergroup and assign.

Getting specific with userid's is really outside the scope of use for style properties, and more you're heading down the road of a much further indepth addon that links directly into user permissions, allowing you to just check a box beside a user to use a specific userrank you have created through the system, assignable on a per user basis.

This edit of Jaxels never really accounts for such in-depth requirements, nor style properties system.

I think that is more something that needs to be included in XF itself... then the rank styling is modified.
Thanks Jaxel and Anthothy.

Is there any way I can add more ribbons using Anthony's addon (currently it has only 4 ribbons)? I have more than 4 groups of supporters (each for a topic area).
I think I need about 8 ribbons: 1 for admin, 1 for smod, 1 for mod, 4 for supporters, 1 for vip :). There are more supporter groups but I can try to squeeze them into 4 groups.
Leave it with me and I will add a further 4 to the above. Just need a few days though, as I literally just got off a 24hr flight from NYC to Melbourne and have a tonne of things to do, and get sleep... as I had a technology break during our holiday.
Thanks Anthony, I too have more than 4 user groups I want to use the ribbons for. So this will be a welcome addition. :)
Anthony, not sure if its perculiar to my installation of your add-on or not, but I've got a problem with ribbon 2 resetting its colour settings if I alter ribbon 1's settings:
  • I changed the colour settings for ribbon 2 in the ACP and saved them
  • I opened my site page in a new tab to check the colour changes had been applied to ribbon 2 - they had
  • I then went back and edited the colours on ribbon 1 and when I saved them it RESET RIBBON 2 colour settings

Just thought I'd mention it if it's a minor bug?

Shaun :D
Thanks Anthony and Jaxel. I'll be installing this mod when I've migrated to XenForo.
Top Bottom