prefix url if store CSS as a file
by
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\" />") . "'"; } 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\" />") . "'"; } Have fun and click |
Similar Mods
prefix url if store CSS as a file | vBulletin 3.0 Full Releases |