Back to vBulletin 3 Articles

prefix url if store CSS as a file
by MrNase 01 Oct 2005

It's basically the same as http://www.vbulletin.org/forum/showt...light=css+path

Open adminfunctions_template.php.

Find:
Code:
$cssfilename = 'clientscript/vbulletin_css/style-' . substr(md5(microtime()), 8, 8) . '-' . str_pad($styleid, 5, '0', STR_PAD_LEFT) . '.css';
if ($vbulletin->options['storecssasfile'] AND write_css_file($cssfilename, $css))
{
$QUERY[] = "css = '" . $vbulletin->db->escape_string("<link rel=\"stylesheet\" type=\"text/css\" href=\"$cssfilename\" id=\"vbulletin_css\" />") . "'";
}
and replace it with:
Code:
			$cssfilename = 'clientscript/vbulletin_css/style-' . substr(md5(microtime()), 8, 8) . '-' . str_pad($styleid, 5, '0', STR_PAD_LEFT) . '.css';
			$cssfilepath = $vbulletin->options['bburl'].'/'.$cssfilename;
			if ($vbulletin->options['storecssasfile'] AND write_css_file($cssfilename, $css))
			{
				$QUERY[] = "css = '" . $vbulletin->db->escape_string("<link rel=\"stylesheet\" type=\"text/css\" href=\"$cssfilepath\" id=\"vbulletin_css\" />") . "'";
			}
Now, and that's the most important step, you have to rebuild your styles!

Have fun and click

Similar Mods

prefix url if store CSS as a file vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024