XF 2.2 Editing not saving custom css classes?

Hawx

New member
Hi Guys

Wondering if anyone has a fix to this issue? When we edit app_user_banners.less to include custom CSS title banners, upon saving it will update the code fine, however immediately after it is reverting the form back to the default code automatically.

We are adding in the following CSS:

Code:
&.userBanner--Raspberry { .m-userBannerVariation(white, #EE2b5b); }
&.userBanner--Emerald { .m-userBannerVariation(white, #2ECC71); }
&.userBanner--Blue { .m-userBannerVariation(white, #0008e3); }
&.userBanner--Purple { .m-userBannerVariation(white, #7748d2); }
&.userBanner--Brass { .m-userBannerVariation(black, #C5B358); }
&.userBanner--Silver { .m-userBannerVariation(black, #C0C0C0); }
&.userBanner--Bronze { .m-userBannerVariation(black, #CD7F32); }
&.userBanner--HotPink { .m-userBannerVariation(white, #ff5982); }

And then using the class name from above under the usergroups "User Banner Styling" as shown in this screenshot:

869e392c046971dc61863f7cfc3818eb.webp

I mean there is an odd occasion where the changes actually save, and the custom rank and colour shows not a problem - but shortly after the form will reset itself to default code.

For example this is how class Raspberry shows (Founder) rank:
52a4f9bc1ac0273742eba7590f9aff26.webp

Then after the changes disappear it just reverts back to text only with no backgrounds.


If anyone can help with this would be appreciated, its annoying the life out of me!
 
You seem to have edited the template correctly, in fact it works correctly for me.

Capture d'écran 2024-06-15 095230.webpCapture d'écran 2024-06-15 095245.webp

Perhaps there is code elsewhere that interferes with this one (extra.less) or an add-on?
 
That would have to be something server side, such as caching perhaps.

Once a template is edited and saved, it would not revert, nor would the code automatically be removed from the template.
 
That would have to be something server side, such as caching perhaps.

Once a template is edited and saved, it would not revert, nor would the code automatically be removed from the template.

So I raised the ticket saying it was a server issue and was told its not something you guys deal with? I have Xenforo Cloud. Can you tell me how I fix this then, because 100% it is reverting the file to default values.
 
Back
Top Bottom