hidjra
03-16-2006, 10:00 PM
Step 1
Create a new file, call it 'gzip-css.php' copy the following snippet and upload to the 'vbulletin_css' folder:
<?php
ob_start('ob_gzhandler');
header('Content-type: text/css; charset: UTF-8');
header('Cache-Control: must-revalidate');
header('Expires: Thu, 3 Jan 2007 23:53:18 GMT');
?>
Step 2
create a .htaccess file, put this in the same directory as above, put in the following snippet:
php_value auto_prepend_file gzip-css.php
Step 3
Open the adminfunctions_template.php file located in the 'includes' directory. Look for the following:
$cssfilename = 'clientscript/vbulletin_css/style-' . substr(md5(microtime()), 8, 8) . '-' . str_pad($styleid, 5, '0', STR_PAD_LEFT) . '.php';
change it to
$cssfilename = 'clientscript/vbulletin_css/style-' . substr(md5(microtime()), 8, 8) . '-' . str_pad($styleid, 5, '0', STR_PAD_LEFT) . '.css';
Now login to you vb control panel, re-generate the css file and your done. Enjoy ;)
Create a new file, call it 'gzip-css.php' copy the following snippet and upload to the 'vbulletin_css' folder:
<?php
ob_start('ob_gzhandler');
header('Content-type: text/css; charset: UTF-8');
header('Cache-Control: must-revalidate');
header('Expires: Thu, 3 Jan 2007 23:53:18 GMT');
?>
Step 2
create a .htaccess file, put this in the same directory as above, put in the following snippet:
php_value auto_prepend_file gzip-css.php
Step 3
Open the adminfunctions_template.php file located in the 'includes' directory. Look for the following:
$cssfilename = 'clientscript/vbulletin_css/style-' . substr(md5(microtime()), 8, 8) . '-' . str_pad($styleid, 5, '0', STR_PAD_LEFT) . '.php';
change it to
$cssfilename = 'clientscript/vbulletin_css/style-' . substr(md5(microtime()), 8, 8) . '-' . str_pad($styleid, 5, '0', STR_PAD_LEFT) . '.css';
Now login to you vb control panel, re-generate the css file and your done. Enjoy ;)