Quote:
Originally Posted by grandeur_69
permanent fix for using css as a file:
in includes/adminfunctions_template.php
find:
Code:
if (preg_match('#^<link rel="stylesheet" type="text/css" href="(clientscript/vbulletin_css/style-\w{8}-0*' . $styleid . '\.css)" />$#', $csscontents, $match))
replace with:
Code:
if (preg_match('#^<link rel="stylesheet" type="text/css" href="'.$vboptions['bburl'].'/(clientscript/vbulletin_css/style-\w{8}-0*' . $styleid . '\.css)" />$#', $csscontents, $match))
and, find:
Code:
$QUERY[] = "css = '" . addslashes("<link rel=\"stylesheet\" type=\"text/css\" href=\$cssfilename\" />") . "'";
replace with:
Code:
$QUERY[] = "css = '" . addslashes("<link rel=\"stylesheet\" type=\"text/css\" href=\"{$vboptions['bburl']}/$cssfilename\" />") . "'";
cheers
|
Its working for the newsletter hack now but my normal pages are not working anymore now.
<link rel="stylesheet" type="text/css" href="http://www.clanforums.com/forum/http://www.clanforums.com/forum/clientscript/vbulletin_css/style-63c43471-00090.css" />
but it should be
<link rel="stylesheet" type="text/css" href="http://www.clanforums.com/forum/clientscript/vbulletin_css/style-63c43471-00090.css" />
How can I fix this now for all normal pages?