The vB Geek

The vB Geek (http://www.thevbgeek.com/index.php)
-   Geek Gazette (http://www.thevbgeek.com/forumdisplay.php?f=56)
-   -   CSS is importing but not using absolute links (http://www.thevbgeek.com/showthread.php?t=5199)

zimdude 07-01-2009 03:16 AM

CSS is importing but not using absolute links
 
Hi all,

I have imported the CSS into GAZ and in my newsletter the view code (viewed from outlook) shows me that the url is truncated and does not include the path to the domain...

background: #50991f url(talkstuff/misc/cattitle_bg2.gif) repeat-x top left;

It should look like this;

background: #50991f url(http://www.mywebsite.com/forum/talkstuff/misc/cattitle_bg2.gif) repeat-x top left;



Can anyone point me in the right direction.. thanks:)

zimdude 07-01-2009 11:50 PM

I am really battling with this and would appreciate some help from anyone at thevbgeek. I have spent several hours figuring it out as the wiki is down and there is no manual with this. Most of it I have been successful with but I need direction with this....

I have edited the Extended inline style for my forum to include;

background-color: #50991f;color: #FFFFFF;font-size: 10pt;font-size: 10pt;font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;url:http://www.mywebsite.com/forum/talks...title_bg2.gif;

and

background-color: #50991f;color: #FFFFFF;font-size: 10pt;font-size: 10pt;font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;url(http://www.mywebsite.com/forum/talks...itle_bg2.gif);

I have recreated the newsletter just in case it needed to pull new style info. Yes I have also reset data before sending. Yet when view the source in the email the ABSOLUTE parth is NEVER included.

Please advise how I get the CSS to include the absolute path. I am sure I am just doing something dumb, or have not got the correct syntax.

Many thanks

Morgan 07-02-2009 04:54 PM

The GAZ template have $stylecss variables that use the GAZ ACP Inline Style Info. Via the ACP -> vBulletin Options -> General Settings set Add Template Name in HTML Comments to yes, then Refresh Layout via the ACP -> GAZ -> Issues, and then look at the HTML source to see what template is being used where. You can then look at the template via the ACP and see whether there are any $stylecss variables in that template for what you are trying to change.

When using the GAZ ACP Inline Style Info, you select the style and then select the style from which to load CSS values. In the "Extended inline style info for X Style" section will appear the CSS and if you want to change that CSS, you need to make sure that you save the changes using the save button at the bottom of the section. Afterward you need to Refresh Layout via the ACP -> GAZ -> Issues to see the changes.

zimdude 07-07-2009 12:55 AM

Thanks Morgan,

I found by entering the absolute path under ACP>Style Manager>Main CSS the email that went out including the absolute path. Did not know about the Add Template Name in HTML Comments but seems I did that in a round about way :)
Many thanks.


All times are GMT. The time now is 12:36 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.