PDA

View Full Version : calling vb's style.css from a php file?


glorify
11-26-2007, 06:58 PM
I have an addon php file that I instead of calling it's own css file, I want to add the css to vb's stylesheet.

That way I can use the file with different styles and have it's own stylesheet built into the default vb style.

The code I'd assume is here I'd have to modify in the .php file:
var embedFPSSCSS = '<' + 'style type="text/css" media="screen">'
+ '@import "mod_fpslideshow/jj_raster/mod_fpslideshow.css";'

I'd assume I would change it to:
var embedFPSSCSS = '<' + 'style type="text/css" media="screen">'
+ '@import "vbstylesheet.css";'

But I have no clue where the actual vb css is.

vertigo jones
11-26-2007, 08:12 PM
It's at:

<forum home>/clientscript/vbulletin_css/style-<some number>.css

The number changes for each style. I assume it's somehow related to the style id.

glorify
11-26-2007, 08:23 PM
So if it were style 27, would it look like:

var embedFPSSCSS = '<' + 'style type="text/css" media="screen">'
+ '@import "forums/clientscript/vbulletin_css/style-27.css";'

?

I can't direct link to that file in my browser.

vertigo jones
12-03-2007, 09:04 PM
So if it were style 27, would it look like:

var embedFPSSCSS = '<' + 'style type="text/css" media="screen">'
+ '@import "forums/clientscript/vbulletin_css/style-27.css";'

?

I can't direct link to that file in my browser.

No, it's some random looking number. Check the clientscript/vbulletin_css folder. It should be in there.