CSS background image does not show up?

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Ideas Centre
Locked
energyuser
Registered User
Posts: 68
Joined: Fri May 03, 2013 4:56 pm

CSS background image does not show up?

Post by energyuser »

I have the following CSS code:

Code: Select all

.approve-icon, .approve-icon a	{ background-image: url("{IMG_ICON_POST_APPROVE_SRC}"); }
ul.approve-icons, li.approve-icon { width: {IMG_ICON_POST_APPROVE_WIDTH}px; height: {IMG_ICON_POST_APPROVE_HEIGHT}px; }

/* Icon images
---------------------------------------- */
.icon{
        background-image: url("{T_THEME_PATH}/images/icon_medal.gif");
}
So these are PHP variables into the CSS file but they seam to not carry a value. The background image of .icon cannot be loaded. It looks like the parser parses the variables as they are instead of their value.
Last edited by energyuser on Fri Apr 18, 2014 7:05 pm, edited 1 time in total.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52143
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: CSS background image does not show up?

Post by Brf »

The prosilver style does not link the CSS files. The overall_header links to style.php which gives the compiled stylesheet, not the css files themselves.
energyuser
Registered User
Posts: 68
Joined: Fri May 03, 2013 4:56 pm

Re: CSS background image does not show up?

Post by energyuser »

Brf wrote:The prosilver style does not link the CSS files. The overall_header links to style.php which gives the compiled stylesheet, not the css files themselves.
OK but how do I modify the theme so that the vars value to be shown?
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52143
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: CSS background image does not show up?

Post by Brf »

prosilver does not have a medals.css. How are you accessing that file from prosilver?
energyuser
Registered User
Posts: 68
Joined: Fri May 03, 2013 4:56 pm

Re: CSS background image does not show up?

Post by energyuser »

That's a MOD: Medals System
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52143
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: CSS background image does not show up?

Post by Brf »

Brf wrote:How are you accessing that file from prosilver?
Locked

Return to “[3.0.x] Styles Support & Discussion”