XF 2.2 Custom User Group Images not appearing

So, I've been struggling with this for about three days now, attempting to get my customized user group images to work for my site. It's still a relatively new website, so it's barebones. I basically want something like this:

1.png

However, every time I put in my custom url or whatever, the image simply doesn't appear on any of the users with the said usergroup. The coding I'm using in the extra is:

2.png

I even have it correctly placed in the proper user group area:
1666222168259.png

Yes for some reason it still doesn't work. Is there anyone out there than can lend some assistance? I'd really like to get this working for my community before the opening of the website.
 
Hello,
  1. host the image on your own server (it's always better!).
  2. write something in the user banner text, even a   ;)
    1. Capture web_20-10-2022_02644_localhost.jpeg
  3. enjoy !
    1. Capture web_20-10-2022_02240_localhost.jpeg
Less:
.badge--whitelisted {
    background: url("/data/assets/images/kNzBGm0l.jpg") no-repeat;
    height: 32px;
    text-indent: 10000px;
    width: 120px;
}
 
Last edited by a moderator:
Hello,
  1. host the image on your own server (it's always better!).
  2. write something in the user banner text, even a   ;)
    1. View attachment 275280
  3. enjoy !
    1. View attachment 275281
Less:
.badge--whitelisted {
    background: url("/data/assets/images/kNzBGm0l.jpg") no-repeat;
    height: 32px;
    text-indent: 10000px;
    width: 120px;
}



I followed this and it works great but one thing I noticed is that for example.

I upload an image called "AdminBanner.png" and then lets say I make a change and want to replace the banner with a new one. Even though in the extra.less I have the same path location to the image it will not update and will stay as the previous image. It only updates if I for example change it to "adminbanner.png" which suggests to me the images are being stored somewhere else within xenforo.

I am new to xenforo so sorry if this is a noob question.
 
I followed this and it works great but one thing I noticed is that for example.

I upload an image called "AdminBanner.png" and then lets say I make a change and want to replace the banner with a new one. Even though in the extra.less I have the same path location to the image it will not update and will stay as the previous image. It only updates if I for example change it to "adminbanner.png" which suggests to me the images are being stored somewhere else within xenforo.

I am new to xenforo so sorry if this is a noob question.
That’s a cache problem, with a hard refresh (browser) the new image should be displayed.
 
Back
Top Bottom