The Arcive of vBulletin Modifications Site. |
|
|
prefix url if store CSS as a file
It's basically the same as https://vborg.vbsupport.ru/showthrea...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 install
|
|
#2
|
|||
|
|||
|
cool
hacks can go outside the root now ![]() no need for it yet but im sure i will one day |
|
#3
|
||||
|
||||
|
Quote:
Anyway, thanks.
|
|
#4
|
||||
|
||||
|
Actually.. you are doing this alot differntly.. why not just do it dynamicly?
|
|
#5
|
|||
|
|||
|
Hum.. sorry?
|
|
#6
|
||||
|
||||
|
{shrugs} just updated mine to use a plugin
![]() https://vborg.vbsupport.ru/showthrea...618#post783618 No nasty hacking required. |
|
#7
|
||||
|
||||
|
Quote:
|
![]() |
|
|