Log in

View Full Version : Store CSS In File...


reefland
09-23-2005, 01:58 PM
I would like to store the CSS in the file system however I need to edit the var so that the css link when called is the entire path, not just clientscript/vbulletin_css/xxx

Where can I edit this at? The reason I need to do this is I call the headinclude template outside of the forum directory and without the entire path I kill the look of the page it is loading in.

Andreas
09-23-2005, 02:00 PM
Cheepo solution (that's what I did to avoid file edits):
symlink it

Or use code in Template phpinclude_end (Hook global_complete for vBulletin 3.5) to replace

<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css

with the full path version. Keep in mind you might also run into trouble with images or JavaScript includes.

reefland
09-23-2005, 02:10 PM
symlink
Thanks Kirby, I checked it out on php.net but I'm not seeing it. All I have in the headinclude is $style[css] which when storing in the file generates the css link?

Andreas
09-23-2005, 02:17 PM
Do you have shell access?


ln -s /full/path/to/vbulletin_css vbulletin_css


Also make sure that Apache (I'll just assume you are using Apache :)) can follow symlinks.

reefland
09-23-2005, 02:26 PM
Do you have shell access?


ln -s /full/path/to/vbulletin_css vbulletin_css


Also make sure that Apache (I'll just assume you are using Apache :)) can follow symlinks.

I do but not here at work (yup I'm guilty, browsing vb at work). I'll give it a shot.

Thanks!