Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
HELLCAT's Realtime Page Compressor Details »»
HELLCAT's Realtime Page Compressor
Mod Version: 1.24, by Hellcat (Contributor) Hellcat is offline
Developer Last Online: Apr 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.3 Rating: (22 votes - 4.95 average) Installs: 422
Released: 26 Jan 2006 Last Update: 19 Feb 2006 Downloads: 790
Supported Uses Plugins Template Edits  

This is my version of a realtime page compressor.
The idea is based on ShiningArcanine's port of the "Realtime Template Compressor", that is also based on the original concept by Logician, and can be found in this thread:
http://www.vbulletin.org/forum/showthread.php?t=83248

But since my version doesn't contain any of his original code anymore (even the regular expressions have been rewritten) and I added a bunch of new features I finally decided to release this one as a speperate thing.

Features:
  • Copmresses the final HTML output sent to the browser by ~10% to ~15%
    (see bellow for how this is achived)
  • Full controll via AdminCP options
    (you can turn it ON/OFF and choose if, and how the stats should be displayed - see screenshot)
  • Stats display can be fully customized via template edit
  • Areaes with intentional/wanted whitespace are left untouched
    (So this does not mess up user inputted text, text in [code] blocks and the such....)
  • JavaScript blocks are kept intact and functional

What does this exately do?
This plugin strips all unneccesary whitespace, linebreaks and HTML comments out of the final HTML code that vBulletin sends to the browser.
This way the pages get a bit smaller (saving bandwidth) and the browser often renders the pages faster since there's no whitespace it must skip.

Passages that are enclosed by <pre> and <textarea> tags are left untouched completely so text posted in [code], [php] and other bb-tags of that sort are not affected and kept like the user intended them to be.
Passages enclosed in <script> tags are only striped from leading whitspace but not of linebreaks - this way JavaScript (and other) code will remain functional and does not get messed up.


How to install
Couldn't be more easy.
If you have any other page/template complression tool installed -> uninstall it first.

Then go to "AdminCP -> Product Manager -> Add/Import product" and import the .XML you downloaded here.

Now go to the "vBulletin Options" in the AdminCP, under "Help Server Settings and Optimization Options" you will find the "Realtime Page Compressor Options" settings group.
Open the settings, change them to what you want and hit "SAVE"
(It's important that you SAVE the options even when you want to use the defaults! For vB to actually create theese settings in the DB they have to be saved at least once!!!)

Done

More details are in the README.


Have fun!


UPDATE 1.10
Not a day old and here comes the first update
  • Added compatibility for the "Any Media BB Code"
    Before the Any Media BB Code was screwed up in IE when the compressor was active -> FIXED
  • Raised compresseion ratio another 1 to 3 percent
    "Code comments" (stuff between "/*" and "*/" - used in CSS and JS for example) are now striped as well.

Update 1.20
  • Added the option to show the stats display to admins only.
    Go to "AdminCP -> vBulletin Options -> Real Time Compressor Settings" and you will find the new option there.
  • Fixed the "uncached template" issue
  • Tweaked the RegEx' a bit more
    But they still need quite some optimization/tweaking

Update 1.21
  • Added HTML tag to exclude blocks from compression
    Put blocks of HTML source between <nocompress>Your Source</nocompress> tags to have it untouched by the page compression.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	pgcmprcpshot.gif
Views:	3371
Size:	39.7 KB
ID:	41591

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Realtime Template Compressor: Reduces page sizes, loads pages faster, saves bandwidth ShiningArcanine vBulletin 3.5 Add-ons 281 03 May 2011 12:10
RealTime Template Compressor: Reduces page sizes, loads pages faster, saves Bandwidth Logician vBulletin 2.x Full Releases 108 18 Dec 2004 10:34
Offline Template Compressor Andreas vBulletin 3.0 Beta Releases 18 12 Aug 2004 13:54

Comments
  #2  
Old 26 Jan 2006, 01:01
Dave-ahfb Dave-ahfb is offline
 
Join Date: Mar 2002
Installed 3.5.3 averaging 10% - 15% savings
__________________
ahfb2000.com - HTML - Web Hosting Directory - Webmaster Tools - Webmaster Books
Domain Names - PHP Scripts - Over 4000 5000 6000 ... 13,000 member strong Webmaster Forums
Reply With Quote
  #3  
Old 26 Jan 2006, 01:06
DefenceTalk DefenceTalk is offline
 
Join Date: Dec 2004
Originally Posted by Dave-ahfb
Installed 3.5.3 averaging 10% - 15% savings
How easy is editing the templates once compressed?
Reply With Quote
  #4  
Old 26 Jan 2006, 01:10
Dave-ahfb Dave-ahfb is offline
 
Join Date: Mar 2002
It alters the output, it does not touch pre-rendered templates.

Dave
__________________
ahfb2000.com - HTML - Web Hosting Directory - Webmaster Tools - Webmaster Books
Domain Names - PHP Scripts - Over 4000 5000 6000 ... 13,000 member strong Webmaster Forums
Reply With Quote
  #5  
Old 26 Jan 2006, 01:19
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
This is amazing, it goes from 9 - 14 % here...

Good job!!

/me clicks install

It would be awesome if you could try something like this for the vB Drupal extension, like an add-on or something
__________________
Think Hype Networks | MeandIsis
Reply With Quote
  #6  
Old 26 Jan 2006, 01:42
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Wow thanks!
Reply With Quote
  #7  
Old 26 Jan 2006, 02:14
Lizard King's Avatar
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Real name: Mert
Working pretty good but you have an uncached template "pagecompressor_stats".

Edit : I cache this template as i always did to other templates but it didn't work. I forget the "s" in the end Perfect hack
__________________
Mert G÷kšeimam / Crawlability Inc.

DepKaš | vBSEO 3.3.0 - vBulletin Search Engine Optimisation

Last edited by Lizard King : 26 Jan 2006 at 02:18.
Reply With Quote
  #8  
Old 26 Jan 2006, 02:25
EricaJoy EricaJoy is offline
 
Join Date: Sep 2002
/me clicks install

i <3 hellcat
Reply With Quote
  #9  
Old 26 Jan 2006, 02:33
4number8 4number8 is offline
 
Join Date: Nov 2004
This works really good, and so simple to install, many thanks for this
Reply With Quote
  #10  
Old 26 Jan 2006, 02:39
Makaveli105's Avatar
Makaveli105 Makaveli105 is offline
 
Join Date: May 2004
Real name: Jamal T.
thank you

Makaveli installs
Reply With Quote
  #11  
Old 26 Jan 2006, 03:05
Hellcat Hellcat is offline
 
Join Date: May 2003
Real name: Michael
Glad you like it

And there goes the first update already
(read release post above for details)

To Upgrade:
Just import the new .XML and be sure to check the "Allow overwrite" option!




Originally Posted by gamebgs
It would be awesome if you could try something like this for the vB Drupal extension, like an add-on or something
I took a quick look at Drupal....
Seems not perfectly integrated, it didn't even use my customized templates from the style I had running
And it doesn't fire the vB hooks, so no compression there (yet).

But I might look deeper into this when I get the time.
__________________
<?php eval('$post["signature"] = "' . fetch_template('hellcats_sig') . '";'); ?>

Check this:
[ WMail - vBulletin WebMailer || PM-Auto-Reply || Countdown-Timer for signature ] * [ more ]
[ Realtime Page Compressor || The allmighty IRC /me action ]
Reply With Quote
  #12  
Old 26 Jan 2006, 03:18
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Real name: Z.R.
Lightbulb

HOLLY SHIT

How Could I have missed it...Damn To me...

Many thanks & Well wishes to HELLCAT'


Its really amagiz thing....


Kliks Install
Reply With Quote
  #13  
Old 26 Jan 2006, 03:19
99SIVTEC 99SIVTEC is offline
 
Join Date: Nov 2001
Works great. Saved almost 40 percent on some pages of my test site.
Reply With Quote
  #14  
Old 26 Jan 2006, 03:21
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Originally Posted by Hellcat
Glad you like it

And there goes the first update already
(read release post above for details)

To Upgrade:
Just import the new .XML and be sure to check the "Allow overwrite" option!





I took a quick look at Drupal....
Seems not perfectly integrated, it didn't even use my customized templates from the style I had running
And it doesn't fire the vB hooks, so no compression there (yet).

But I might look deeper into this when I get the time.
that's great, thanks Hellcat
__________________
Think Hype Networks | MeandIsis
Reply With Quote
  #15  
Old 26 Jan 2006, 03:22
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Real name: Z.R.
Originally Posted by 99SIVTEC
Works great. Saved almost 40 percent on some pages of my test site.

wow man.....

whats ur site????
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 17:20.

Layout Options | Width: Wide Color: