PDA

View Full Version : Link External Page to VB CSS Files


jwashburn
09-18-2006, 07:03 PM
I have a page outside of VB that I would like to use VB CSS styles on. The easy answer is to just view the CSS styles of a VB page and create a new CSS style sheet and link my external page to that, buts that more work if I make a change.

How would I link a page outside of VB to the style sheets that VB dynamically builds?

Is it even possible?

abenoking
01-14-2007, 03:15 AM
Postmortem bump. I'd like to know this too.

I have set VB to output CSS as a file, and have integrated VB: I just need to know the function/variable call that will echo the users' selected stylesheet.

DPSR
01-14-2007, 04:09 AM
I think first store the CSS as file in 'clientscripts/vbulletin_css' folder (chmod first 777)

You can find this option to store css as file in vbulletin option

and then, you can link that css file to your external pages!
Like-
<link rel="stylesheet" type="text/css" href="http://www.yoursite.com/clientscript/vbulletin_css/style-0000000.css" id="vbulletin_css" />

abenoking
01-14-2007, 05:47 AM
I think first store the CSS as file in 'clientscripts/vbulletin_css' folder (chmod first 777)

You can find this option to store css as file in vbulletin option

and then, you can link that css file to your external pages!
Like-

Sort of.

The trick is that the script has to figure out which css file that the user has selected, as opposed to hard coding it like that.

There is probably a global variable or function that will do this, but I don't know what it is.

abenoking
01-28-2007, 10:06 PM
Bump

Anybody? Not knowing how to do this is really holding me back on my project.