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 (Member) 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
Not 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

  #91  
Old 30 Jan 2006, 07:52
Hellcat Hellcat is offline
 
Join Date: May 2003
Real name: Michael
Originally Posted by username12
Sounds good. I'll definitely reinstall then.
Since there are no other issues at the moment, there's no need to hold it back -> UPDATED to 1.21 with exclusion support

<nocompress>
Some totally
cool HTML
source here
<!-- with comments -->
</nocompress>

^^^^^^^^ blocks like this (between the "nocompress" tag) are now left alone and not touched/changed by the compressor.
__________________
<?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
  #92  
Old 30 Jan 2006, 14:44
tgmorris tgmorris is offline
 
Join Date: Nov 2003
Originally Posted by Hellcat
blocks like this (between the "nocompress" tag) are now left alone and not touched/changed by the compressor.
I'm using this and it's working just fine. Before upgrading to this latest version, does it strip the tags so the resulting code will still validate?
Reply With Quote
  #93  
Old 30 Jan 2006, 16:49
Hellcat Hellcat is offline
 
Join Date: May 2003
Real name: Michael
Originally Posted by tgmorris
I'm using this and it's working just fine. Before upgrading to this latest version, does it strip the tags so the resulting code will still validate?
It does now
__________________
<?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
  #94  
Old 30 Jan 2006, 17:34
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Real name: Z.R.
Are we going to have any update ??
Reply With Quote
  #95  
Old 30 Jan 2006, 17:36
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Real name: Mj Bain
works way better! great work Hellcat
__________________
____________
BossLady
Reply With Quote
  #96  
Old 30 Jan 2006, 18:29
DarKNull DarKNull is offline
 
Join Date: Feb 2005
my site doesn't show the source code. can it do any harm to search sites not reading the meta keyword and description.
Reply With Quote
  #97  
Old 30 Jan 2006, 18:38
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Real name: Z.R.
Originally Posted by DarKNull
my site doesn't show the source code. can it do any harm to search sites not reading the meta keyword and description.
strange matter ..u point budy...

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html dir="ltr" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta name="generator" content="vBulletin 3.5.3" /> <meta name="keywords" content=",Shout Loud here.Chit-chat place, A Members Hangout Place.,Golpo Bangladesh Bangla Forum Game Quiz irc chat music Concert download Politics movies Television Theater Fashion Nature Tourism Travel" /> <meta name="description" content=". Page 5-Shout Loud
we are on 3.5.3....i can see the source code right now?
im soo curious??
Reply With Quote
  #98  
Old 30 Jan 2006, 21:53
Hellcat Hellcat is offline
 
Join Date: May 2003
Real name: Michael
Originally Posted by Zia
Are we going to have any update ??
On what?
The ZIP of this MOD is updated to the very latest version (1.22) that includes the exclusion and the stripping of the exclusion tags for XHTML compliance.




Originally Posted by DarKNull
my site doesn't show the source code. can it do any harm to search sites not reading the meta keyword and description.
How does your site not show the source?
The browser somehow has to know what to display
__________________
<?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
  #99  
Old 31 Jan 2006, 07:02
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Real name: Z.R.
Originally Posted by Hellcat
On what?
The ZIP of this MOD is updated to the very latest version (1.22) that includes the exclusion and the stripping of the exclusion tags for XHTML compliance.
its now saving ~10% in forum home with 24 query...just asking in future release will it compress more?

anotherthing...i dont know its the perfetc place to ask or not...
any way that this hack will convert/cmopess the quote in reply klikable? :cry:

maybe not right place....tho asking.....

thnx
Reply With Quote
  #100  
Old 31 Jan 2006, 07:40
Hellcat Hellcat is offline
 
Join Date: May 2003
Real name: Michael
Originally Posted by Zia
its now saving ~10% in forum home with 24 query...just asking in future release will it compress more?
Well, for the moment it strips away ANYTHING that can be removed safely without breaking the markup of the HTML page.
There are a few more spots where things could get stripped but that would already affect the resulting rendered page (actually that was a bug/problem that got fixed in one of the updates) or at least make it no longer validating as propper XHTML.

So, either we come up with some genius ideas of things that also can be safly removed or (I already thought about this: ) I add some sort of "agressive compression" settings that will cause above mentioned affects.

For now I have no idea how to raise the compression savings....


Originally Posted by Zia
anotherthing...i dont know its the perfetc place to ask or not...
any way that this hack will convert/cmopess the quote in reply klikable? :cry:
Hmm, not sure if I'm getting you there.
You want quoted text in a post to be compressed?
For the threadview this is already the case, the edit/reply input box however is left untouched since that would mess up user inputted text....

But maybe I just got you wrong there
__________________
<?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
  #101  
Old 31 Jan 2006, 14:34
bcmedia's Avatar
bcmedia bcmedia is offline
 
Join Date: Sep 2002
Real name: Liz
Excellent Hack!!! :d
Reply With Quote
  #102  
Old 31 Jan 2006, 15:02
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Real name: Z.R.
thankx hellcat..

hope aggresive compress will work w/o any problem
good luck mr.coder.....for ur too kool idea
Reply With Quote
  #103  
Old 02 Feb 2006, 11:19
Daracon Daracon is offline
 
Join Date: Nov 2005
Thanks for that nice hack!

[page compression: 38.89 k/44.94 k (13.46%)]

*klicks install*

Last edited by Daracon; 02 Feb 2006 at 11:31.
Reply With Quote
  #104  
Old 03 Feb 2006, 18:21
BitMite BitMite is offline
 
Join Date: Apr 2005
INSTALLED

Excellent hack, thanks.
Reply With Quote
  #105  
Old 03 Feb 2006, 19:55
swa swa is offline
 
Join Date: Apr 2005
awesome hack! thanks!!
__________________
http://www.dellusers.com
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 13:39.

Layout Options | Width: Wide Color: