PDA

View Full Version : CSS as a link, not in source


edbri871
05-25-2005, 01:21 AM
Not that this is really needed for any reason, but i'd like to find out if it's possible as it will make viewing the page source easier.

In vbulletin if you view the source you can see all of the css for the page right in the header, which is really annoying to have to scroll through to get to the actual html code.

It would be nice if it was just a link to the css instead of it all being right there i the source (usually in the form of <link rel="stylesheet" src="whatever.css" />).

So does anyone know if this is possible? I hope you know what i'm talking about. :squareeyed:

edit: oops why did i post in vb2 hacks. :rolleyes:
can a mod please move this?

Zachery
05-25-2005, 01:59 AM
Why hack in what is a standard feature ;)

Store CSS as a File, its in the AdminCP > vBulletin Options

nexialys
05-25-2005, 02:47 AM
you just need to set the options to save the CSS in files... in the Styles and Language tab... and chmod the directory "clientscripts" to 0777...

edbri871
05-25-2005, 11:32 AM
you just need to set the options to save the CSS in files... in the Styles and Language tab... and chmod the directory "clientscripts" to 0777...
I tried that.
it already was set to save css as files, but it's still showing it in the page source. is there something else i have to do?

Zachery
05-25-2005, 01:13 PM
I tried that.
it already was set to save css as files, but it's still showing it in the page source. is there something else i have to do?
If you enabled the option, THEN chmod'ed the folder, it couldn't write to the folder when you saved the option.

Disalbe it, ensure that clientscript/vbulletin_css is chmoded to 777 and then renable the option.

edbri871
05-25-2005, 10:28 PM
alright, the problem was that the ftp wasn't doing the chmod.
the site owner had the server guys chmod it for us, and the option works now.

thanks for the help! :)