XF 2.2 Usegroupe Setup

DaveM

Well-known member
Is there any way to associate a badge (image) to a user group instead of a ribbon to it will display in the same position as the ribbon?

Edit - Don't worry about this I found a way that will work for what I need doing.
 
Last edited:
You can achieve this by creating a custom user banner CSS class. First you want to navigate to your usergroup settings and fill it out similar to the first screenshot. Then you can add this to your extra.less:

Code:
.badge--my-user-group {
    background: url('URL/TO/YOUR/IMAGE') no-repeat;
    height: 65px;
    text-indent: -999999px;
    width: 65px;
}

And that will produce a result similar to my second screenshot, in my case I used the purple badge as the group image.
 

Attachments

  • custom_user_banner.webp
    custom_user_banner.webp
    15.2 KB · Views: 10
  • user_group_badge.webp
    user_group_badge.webp
    5.2 KB · Views: 10
Back
Top Bottom