• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 can user fields be used in EXTRA.css?

CrispinP

Well-known member
#1
Hi folks,

Can this be done?

.userBanner.hasFlag
{
color: white;
background-image: url("/custom/images/flags/{$user.customFields.country_flag.value}");
background-repeat: no-repeat;
background-position: center;
}

It's not working for me but I'm not sure if it's just plain wrong of because it is in EXTRA.css.

if not, how else can I dynamically put a value into the background image?


Thanks
Crispin
 

CrispinP

Well-known member
#2
Actually - I see that it's all wrong. I want that in the postbit to show their country flag but extra.css is all wrong. Never mind :(