XF 2.2 User Group Banners

mle

New member
Hi,

i want to display the moderator or administrator banner instead of the normal staff member banner for admins or mods. I dont find this option in admin panel.

For example:

1668155974852.png

Thank you
 

Tracy Perry

Well-known member
Screen Shot 2022-11-11 at 4.53.45 AM.png
If you don't want to show staff banner at all, turn it off. Otherwise, it's going to show...... as you can see, it's listed as the HIGHEST priority banner, so it trumps ANY others that you have, unless you check Show staff & group banner
Setup->Options->User Options
 

mle

New member
View attachment 276290
If you don't want to show staff banner at all, turn it off. Otherwise, it's going to show...... as you can see, it's listed as the HIGHEST priority banner, so it trumps ANY others that you have, unless you check Show staff & group banner
Setup->Options->User Options

I followed your instructions:

1668166752994.png

Now the staff banner is disabled. Unfortunately, the group banner is still not displayed.

1668166812667.png

1668166848440.png
 

Tracy Perry

Well-known member
can you share the css you used? What is the size of the banner?
It's basically some modification on the resource that was posted here that I found.
As for the "size" of the banner... it's not an image.... it's created by CSS and uses a fontawesome icon in it.

Screen Shot 2022-11-24 at 9.43.15 PM.pngScreen Shot 2022-11-24 at 9.43.37 PM.png

Screen Shot 2022-11-24 at 9.29.38 PM.png

Code:
.label
{  
    &:after
    {
        padding-left: 4px;
        .m-faBase();
    }    
    &:before
    {
        padding-right: 4px;
        .m-faBase();
    }

    &.label--
    {        
/* User Banner custom configs */
        
        &site_founding_member:before
        {
            .m-faContent(@fa-var-galaxy);
            color: #872402;
            font-size:15px;
        }
        
    }
}

/* User Banner modifications */
.label.label--site_founding_member {
    background: #7eb5e8;
    color: #35354b;
    border-color: #140f66;
}
/* End User Banner modifications */
 

mle

New member
Now the banner for the administrator is disappeared again. Only when i select a secound usergroup, e.g. moderator, the banner appeared. i didnt change anything.

Config:
 

Attachments

  • Screenshot 2022-11-30 091624.png
    Screenshot 2022-11-30 091624.png
    43.3 KB · Views: 6
  • Screenshot 2022-11-30 091558.png
    Screenshot 2022-11-30 091558.png
    43 KB · Views: 6
  • Screenshot 2022-11-30 091515.png
    Screenshot 2022-11-30 091515.png
    161.5 KB · Views: 6
Top