← Back to vBulletin 3.5 Add-ons

gzip your CSS
Mod Version: 1.00, by hidjra

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 2
Released: 17 Mar 2006 Last Update: Never Downloads: 1
Not Supported  

Step 1
Create a new file, call it 'gzip-css.php' copy the following snippet and upload to the 'vbulletin_css' folder:

PHP Code:
<?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 Code:
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:

PHP Code:
$cssfilename = 'clientscript/vbulletin_css/style-' . substr(md5(microtime()), 8, 8) . '-' . str_pad($styleid, 5, '0', STR_PAD_LEFT) . '.php'; 
change it to

PHP Code:
$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

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2025