PDA

View Full Version : addition to style sheet location url


squishi
07-03-2008, 05:34 PM
The template engine prints this into the html pages:

<style type="text/css" id="vbulletin_css">
/**
* vBulletin 3.7.0 CSS
* Style: 'My Style 1'; Style ID: 4
*/
@import url("clientscript/vbulletin_css/style-e1f0d32e-00004.css");
</style>


What I want to do is add "/forum/" in front of the "clientscript" above, so that the css will work on my external pages.

How do I do that? I suppose it will require changing a php file?

ssslippy
07-03-2008, 05:41 PM
What you should do is go into stylevars and change all your image paths.

Example is http://www.yoursite.com/images/polls

squishi
07-04-2008, 11:00 AM
And this is related to my problem in which way? I don't get it.

I want the above code to be changed to
<style type="text/css" id="vbulletin_css">
/**
* vBulletin 3.7.0 CSS
* Style: 'My Style 1'; Style ID: 4
*/
@import url("/forum/clientscript/vbulletin_css/style-e1f0d32e-00004.css");
</style>
on my forum.

Dismounted
07-04-2008, 11:45 AM
Just add a base element.
<base href="http://www.site.com/forum/" />

squishi
07-05-2008, 03:07 PM
Interesting.
Never heard of that element before. Thank you for the info.

squishi
07-11-2008, 06:49 PM
I was able to solve this myself with a plugin.
It would have been nice if a had gotten a better answer to this problem, though.

Dismounted
07-12-2008, 05:48 AM
You need to make sure my code is at the top of headinclude, before any other includes are executed - that is the main reason why it "doesn't work".