PDA

View Full Version : HELLCAT's Realtime Page Compressor


Pages : [1] 2

Hellcat
01-25-2006, 10:00 PM
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:
https://vborg.vbsupport.ru/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 :confused:

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.

Dave-ahfb
01-26-2006, 12:01 AM
Installed 3.5.3 averaging 10% - 15% savings

DefenceTalk
01-26-2006, 12:06 AM
Installed 3.5.3 averaging 10% - 15% savings

How easy is editing the templates once compressed?

Dave-ahfb
01-26-2006, 12:10 AM
It alters the output, it does not touch pre-rendered templates.

Dave

The Chief
01-26-2006, 12:19 AM
This is amazing, it goes from 9 - 14 % here...

Good job!!

* The Chief clicks install

It would be awesome if you could try something like this for the vB Drupal extension, like an add-on or something :)

Snake
01-26-2006, 12:42 AM
Wow thanks!

Lizard King
01-26-2006, 01:14 AM
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 :p Perfect hack

EricaJoy
01-26-2006, 01:25 AM
/me clicks install

i <3 hellcat

4number8
01-26-2006, 01:33 AM
This works really good, and so simple to install, many thanks for this :)

Makaveli105
01-26-2006, 01:39 AM
thank you

Makaveli installs :D

Hellcat
01-26-2006, 02:05 AM
Glad you like it :)

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

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

:)


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 :D
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.

Zia
01-26-2006, 02:18 AM
HOLLY SHIT

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

Many thanks & Well wishes to HELLCAT'


Its really amagiz thing....


Kliks Install

99SIVTEC
01-26-2006, 02:19 AM
Works great. Saved almost 40 percent on some pages of my test site.

The Chief
01-26-2006, 02:21 AM
Glad you like it :)

And there goes the first update already :D
(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 :D
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 :)

Zia
01-26-2006, 02:22 AM
Works great. Saved almost 40 percent on some pages of my test site.


wow man.....

whats ur site????

Zia
01-26-2006, 02:28 AM
How to install
----------------
Couldn't be more easy.
If you have any other page/template complression tool installed -> uninstall it first.

i got allready install Realtime template compressure by ShiningArcanine..

asking again...i must uninstall that? b4 install it?
should both 2 hack compress more?? (may be a fools qus) sorry..but askin..im too curious....

thnx

99SIVTEC
01-26-2006, 02:32 AM
it's almost a complete rewrite of vbulletin, thousands of file edits, changed templates, etc. We have lots of commented code in various places while we are in development. the site is almost ready for prime time, then i'll post a link (we launch the first beta tomorrow)

wow man.....

whats ur site????

Lizard King
01-26-2006, 02:37 AM
I dont know what you changed in the new version but the new version is way worse then the old one. The compression level is down to 1%

forumhome : [page compression: 87.79 k/89.21 k (1.59%)]
forumdisplay : [page compression: 115.41 k/116.54 k (0.97%)]
showthread : [page compression: 168.07 k/169.85 k (1.05%)]

Zia
01-26-2006, 02:43 AM
im using both 2 hack...
realtime template compressor & this one in testsite


[Output: 60.98 Kb. compressed to 55.97 Kb. by saving 5.01 Kb. (8.22%)]
[page compression: 52.74 k/56.09 k (5.98%)]



result is it.........ummm

what abt using both together? i dont know abt it using both...creating probs or not

want xperts opinion ..

Hellcat
01-26-2006, 02:43 AM
i got allready install Realtime template compressure by ShiningArcanine..

asking again...i must uninstall that? b4 install it?
should both 2 hack compress more?? (may be a fools qus) sorry..but askin..im too curious....

thnx
They might interfere with each other, so better only use one at a time, not both simultaniously....


I dont know what you changed in the new version but the new version is way worse then the old one. The compression level is down to 1%

forumhome : [page compression: 87.79 k/89.21 k (1.59%)]
forumdisplay : [page compression: 115.41 k/116.54 k (0.97%)]
showthread : [page compression: 168.07 k/169.85 k (1.05%)]
This is weird....
I'm getting almost ~20% on my test install.
Can you take a look at the generated source code and see if there's any comments left or something?
Maybe even send me a copy of that HTML page (the source of it)?

The Chief
01-26-2006, 02:45 AM
I dont know what you changed in the new version but the new version is way worse then the old one. The compression level is down to 1%

forumhome : [page compression: 87.79 k/89.21 k (1.59%)]
forumdisplay : [page compression: 115.41 k/116.54 k (0.97%)]
showthread : [page compression: 168.07 k/169.85 k (1.05%)]

it's up for me...weird that it's doing that to you lizard king...?

Zia
01-26-2006, 02:45 AM
ummm
getting 20%..

http://golpo.net/devsite
is our test site........

[Output: 19.15 Kb. compressed to 18.25 Kb. by saving 0.90 Kb. (4.72%)]
[page compression: 16.19 k/18.38 k (11.92%)]

in forum home getting it..

Guest210212002
01-26-2006, 02:48 AM
[page compression: 76.49 k/89.26 k (14.31%)]

Hellcat, you rock sir. AnyMedia is fixed, and so far I can't find anything that's not as it should be.

* Guest210212002 cheers and mashes the install button with viking-esque fury!

One thing that'd be nice to add is a switch in the ACP for "show to admins only" that would toggle the conditional. I'm a total geek about this stuff and I like to see it all, but my members are mostly saying "What the heck is that stuff down below?" :D

Zia
01-26-2006, 02:48 AM
in forum home...only using it

result...is it..
[page compression: 16.06 k/19.15 k (16.16%)]

who is getting the highest compression ??

for sure not the coder himself..hhe he should always get the highest out put

The Chief
01-26-2006, 02:49 AM
ummm
getting 20%..

http://golpo.net/devsite
is our test site........

[Output: 19.15 Kb. compressed to 18.25 Kb. by saving 0.90 Kb. (4.72%)]
[page compression: 16.19 k/18.38 k (11.92%)]

in forum home getting it..

yup, look at me, I'm getting more in the other pages then forumhome, which I think is normal..

check it out, http://www.myetalk.com/forums

Lizard King
01-26-2006, 02:50 AM
They might interfere with each other, so better only use one at a time, not both simultaniously....



This is weird....
I'm getting almost ~20% on my test install.
Can you take a look at the generated source code and see if there's any comments left or something?
Maybe even send me a copy of that HTML page (the source of it)?

Pm Sent

i've been also doing some checks on my side and i get the same results with Opera , FF 1.5 and IE 6

Zia
01-26-2006, 02:53 AM
yup, look at me, I'm getting more in the other pages then forumhome, which I think is normal..

check it out, http://www.myetalk.com/forums


oh yeah u r getting more compression in forum inside...
[page compression: 66.74 k/75.63 k (11.75%)]

while forum home is ~9.5%

Not bad..its good....

Zia
01-26-2006, 02:57 AM
Dear Hellcat

hope not bothering u.....
but asking... this one remove white spcace....
& realtime temp. compressor...compress maybe not remove white space...
can u modify it...bit more........
something similliar two in one....

XtremeOffroad
01-26-2006, 03:15 AM
Installed and worked as described Clicks Install.
Thanks Hellcat

DJ XtAzY
01-26-2006, 03:35 AM
nice but i like the compression for the first release, the new update one decreases very slightly

its prob because my css is used externally

Hellcat
01-26-2006, 04:10 AM
One thing that'd be nice to add is a switch in the ACP for "show to admins only" that would toggle the conditional. I'm a total geek about this stuff and I like to see it all, but my members are mostly saying "What the heck is that stuff down below?" :D
That could be done.
Noted for the next update :)


but asking... this one remove white spcace....
& realtime temp. compressor...compress maybe not remove white space...
can u modify it...bit more........
something similliar two in one....
Not sure if I'm getting you there....
What do you want to be able to turn ON/OFF?
Making striping leading whitespace as option?


nice but i like the compression for the first release, the new update one decreases very slightly

its prob because my css is used externally
That's weird.
Shouldn't have any effect if the CSS are external....
Do you have comments with "[" in it? 'cause those are left allone now to asure AnyMedia will not screwed up.
(I'm trying to do a better RegEx for that anyway....)

Lizard King
01-26-2006, 04:27 AM
That could be done.
Noted for the next update :)



Not sure if I'm getting you there....
What do you want to be able to turn ON/OFF?
Making striping leading whitespace as option?



That's weird.
Shouldn't have any effect if the CSS are external....
Do you have comments with "[" in it? 'cause those are left allone now to asure AnyMedia will not screwed up.
(I'm trying to do a better RegEx for that anyway....)

I also have my CSS external so i think currently there is a problem.

99SIVTEC
01-26-2006, 05:17 AM
the css is posted when the headinclude variable is parsed which should be before this outputs?

Hellcat
01-26-2006, 07:29 AM
the css is posted when the headinclude variable is parsed which should be before this outputs?
Yep.
The compressor kicks in when all parsing and HTML building is done, just before the actual output is send to the browser.

I also put the CSS on my test system into external files -> no problem there.
Still getting good results. (around ~13%).


nice but i like the compression for the first release, the new update one decreases very slightly
By looking at the code changes the only explanation I have for this is the comments containing "[" - I'd guess you have some of those.... have you?


@Lizard King
By looking at the source of your pages it looks like they ARE propperly compressed.
There's no whitespace, linebreaks or comments left that are supposed to go.

Maybe only the DISPLAY is of.... :confused:

Could that be caused by vbSEO???
With the 1.00 everthing was fine?

It's getting more and more weird....
But I'm still on it!

Lizard King
01-26-2006, 07:33 AM
Yep.
The compressor kicks in when all parsing and HTML building is done, just before the actual output is send to the browser.

I also put the CSS on my test system into external files -> no problem there.
Still getting good results. (around ~13%).



By looking at the code changes the only explanation I have for this is the comments containing "[" - I'd guess you have some of those.... have you?


@Lizard King
By looking at the source of your pages it looks like they ARE propperly compressed.
There's no whitespace, linebreaks or comments left that are supposed to go.

Maybe only the DISPLAY is of.... :confused:

Could that be caused by vbSEO???
With the 1.00 everthing was fine?

It's getting more and more weird....
But I'm still on it!

I will probably upgrade vbseo today. While the upgrade process , i will disable vbseo and check if the problem is about vbseo but the first version worked pretty good with me. If you still have the first version i may try with it also.

Hellcat
01-26-2006, 07:40 AM
Attached is the previous version:

Martin
01-26-2006, 08:02 AM
7-19%

excellent job :)

Snatch
01-26-2006, 09:01 AM
Great Job 7-17%

Hellcat
01-26-2006, 09:11 AM
By looking at the code changes the only explanation I have for this is the comments containing "[" - I'd guess you have some of those.... have you?
HAAA HAAA
I think I found the reason for the slight drop....
During my last experiments I hit F5 a thousand times (OK, a few times less than 1000 ;)) and with the same page reloading (and no changes to the code in the meantime) the ratio went a bit down and up again.

vB seems to put the one or the other linebreak or comment more into the page's source from time to time.

So, nothin' to worry about a percent drop, it'll come back soon ;)

klaush
01-26-2006, 09:38 AM
Great, great, great!!!

Thanks a lot!

Dennis B
01-26-2006, 10:48 AM
Great stuff, just waiting for that ACP option to allow only admins to view the results. ;)

Megareus Rex
01-26-2006, 10:54 AM
My average savings is ~10%. Thanks for this! Its even easy to configure :)

PS: I was one of the first 10 to click install last night >.>

Rich
01-26-2006, 11:43 AM
Hello,

You did a great job. I too have seen a better compression rate over the other version I was running. I average anywhere from %8 - %18 depending on the page. Great work!

> > Rich clicks install

thedvs
01-26-2006, 11:52 AM
INSTALLED!
awesome! thanks you v. much

love the fact you can place the results where you want, especially for the people who use custom skins. very nice.

ryuji
01-26-2006, 11:53 AM
you typo'd compress in the description

Zia
01-26-2006, 12:35 PM
this one works better then real time template compressor...

i tried using both......
This One ReaLLy RoCkS...

Thanks Again Hellcat

Totti
01-26-2006, 12:40 PM
thanks alot hellcat ... uninstalled the old one, using yours ...
but the sourcecode is really messed up now (when you try to bugfix wth), great work :)

theFAILURE
01-26-2006, 12:50 PM
Great work, on average I get 11% :)

EricaJoy
01-26-2006, 12:58 PM
it's almost a complete rewrite of vbulletin, thousands of file edits, changed templates, etc. We have lots of commented code in various places while we are in development. the site is almost ready for prime time, then i'll post a link (we launch the first beta tomorrow)i've seen your new site. it looks good. :) nice work.

puertoblack2003
01-26-2006, 01:07 PM
great hack but i have uncached template i seen that one other member had the problem but didn't explain how to fix it.. :ermm:

Note:

Uncached templates: pagecompressor_stats (1)

Admened: not for this instruction what tempalte are you referring..: :rolleyes:


If you have choosen the "use HTML-Tag" option for displaying the stats, you have to include a special HTML tag somewhere in one of your templates for the stats to show up.

The tag is: <cmpstat />

Guest210212002
01-26-2006, 01:24 PM
thanks alot hellcat ... uninstalled the old one, using yours ...
but the sourcecode is really messed up now (when you try to bugfix wth), great work :)

Haha, I kind of like the compressed source output. Makes it harder for people to swipe your ideas, and you can just disable the plugin if you need to debug something.

GrendelKhan{TSU
01-26-2006, 01:51 PM
awesome!!

* GrendelKhan{TSU exciting installs. :D


post install:

getting 24-31% compression !! woot!


awesome!! great job! :D

DementedMindz
01-26-2006, 03:10 PM
[Page Compression: 40.41 k/46.45 k (12.99%)] thank you :)

FleaBag
01-26-2006, 03:39 PM
Great work! Glad to have this running... I had to uninstall the other hack due to the editing of posts issue.

Tefra
01-26-2006, 04:40 PM
thank you

[page compression: 77.86 k/92.31 k (15.66%)]

Paul M
01-26-2006, 04:58 PM
HAAA HAAA
I think I found the reason for the slight drop....
During my last experiments I hit F5 a thousand times (OK, a few times less than 1000 ;)) and with the same page reloading (and no changes to the code in the meantime) the ratio went a bit down and up again.

vB seems to put the one or the other linebreak or comment more into the page's source from time to time.

So, nothin' to worry about a percent drop, it'll come back soon ;)That's probably the cronimage (link) in the footer rather than an extra comment somewhere.

Hellcat
01-26-2006, 05:51 PM
:):):)

Already puzzling on the 1.20 update.
The AdminCP option for only showing the stats to admins is already in and the uncached template is also already chached :)


That's probably the cronimage (link) in the footer rather than an extra comment somewhere.
Yap, that could be it!
Because it sometimes adds an additional line in my (rendered) page - right there where the cronimage is :)
Mystery solved :D

bashy
01-26-2006, 05:57 PM
Well done m8 great hack, averaging about 10.5%

Gizmo5h1t3
01-26-2006, 07:05 PM
[page compression: 30.12 k/34.29 k (12.17%)]

workin a treat mate...nice 1!!

Red Blaze
01-26-2006, 07:27 PM
Mine is between 7% to 15%. Thanks alot, forums are performing alot better. :)
* Red Blaze clicks install

Mr Chad
01-26-2006, 09:11 PM
page compression: 84.83 k/100.67 k (15.74%)

very nice :)

Hellcat
01-27-2006, 12:51 AM
Update time again :)

As usual: import the new .XML with "Allow Overwrite" enabled -> there ya go.

Setting for "Show stats to admin only" is in the AdminCP where the other options are.
If you don't touch that setting it will remain visible for everyone.

GamerJunk.net
01-27-2006, 02:15 AM
This is great! It will really help mobile customers too!

rnmcd
01-27-2006, 03:08 AM
thanks!

Hellcat
01-27-2006, 03:38 AM
This is great! It will really help mobile customers too!
Ouch, that reminds me to continue my vBmobile style.... :nervous:

Carl Anderson
01-27-2006, 03:39 AM
Update time again :)

As usual: import the new .XML with "Allow Overwrite" enabled -> there ya go.

Setting for "Show stats to admin only" is in the AdminCP where the other options are.
If you don't touch that setting it will remain visible for everyone.

By displaying the stats does it put any extra work on the server to do it?

Great plugin Thanks

Click Installed!

username12
01-27-2006, 03:50 AM
Works great for the most part, but I've got some ads that just disappear with this enabled. Not sure whether it has issues with javascript or what.

Hellcat
01-27-2006, 04:19 AM
By displaying the stats does it put any extra work on the server to do it?
No, I doubt the server will really notice if the stats get displayed or not.


Works great for the most part, but I've got some ads that just disappear with this enabled. Not sure whether it has issues with javascript or what.
JavaScript is kept intact, my GoogleAds are not affected....
Maybe if the ads use HTML comments to determine where they should appear, since those are striped out....

TNAImpact
01-27-2006, 10:13 AM
Works great, getting an average of 12%, can't be bad. :) Cheers!

GuaRRand
01-27-2006, 10:42 AM
might have missed it, but can i savely install this on 3.5.0 ?

steven s
01-27-2006, 11:22 AM
Terrific. No more eating of paragraph returns. :up:
Thanks!

firstrebel
01-27-2006, 03:05 PM
Aw heck. I was so looking forward to breaking the 100Gb a month bandwidth, but had to install this.. Great hack.

*clicks install*

Bob

Hellcat
01-27-2006, 03:47 PM
might have missed it, but can i savely install this on 3.5.0 ?
Yap. Should be no problem there :)

The Chief
01-27-2006, 03:56 PM
it's amazing, you released this thing yesterday and you already have 105 installs...

almost as fast as the arcade...

sorry for the useless post, but I would like to congratulate you on the hard work :D

Hellcat
01-27-2006, 04:06 PM
it's amazing, you released this thing yesterday and you already have 105 installs...

almost as fast as the arcade...

sorry for the useless post, but I would like to congratulate you on the hard work :D
:):):)

Thanks :)
I was enjoying the same thing.
And your post wasn't useless ;)

Red Blaze
01-27-2006, 04:20 PM
Although it doesn't entertain people, this plugin/product is very useful to give your server some relief. So yeah... good stuff Hellcat. :)

Dennis B
01-28-2006, 01:06 AM
* Dennis B installs. Excellent hack! Getting from 8 to 15% per page. :D

MissKalunji
01-28-2006, 01:20 AM
so does this one work better then the other one?

steven s
01-28-2006, 01:27 AM
so does this one work better then the other one?
Yes. This one works. It doesn't have the advanced reply problem. :)

MissKalunji
01-28-2006, 03:19 AM
Yes. This one works. It doesn't have the advanced reply problem. :)

nice thanks!

username12
01-28-2006, 03:18 PM
JavaScript is kept intact, my GoogleAds are not affected....
Maybe if the ads use HTML comments to determine where they should appear, since those are striped out....

Yes, they use HTML (just an image and link). Any way in a future version to add a tag that tells it to ignore specified areas, or even something I could implement myself now?

DJ XtAzY
01-28-2006, 06:43 PM
woot this updated one have a higher percentage now =]

cd1986
01-28-2006, 06:55 PM
Thanks for this - just installed and got a healthy 12% compression on my forum home page. :)

Maagic
01-28-2006, 07:23 PM
Installed... works great :) 18% or so!

kregger
01-28-2006, 08:45 PM
*clicks install*

nevetS
01-28-2006, 08:59 PM
Not trying to rain on anyone's parade here, but I have a question.

Doesn't vB support zlib compression out of the box? And wouldn't zlib compression give you this level of compression and more? And wouldn't adding this in addition to zlib compression needlessly increase the server load?

Like I said - not trying to rain on anybody's parade - this seems like a great concept - but I would like an explanation as to why I am wrong if there is one.

I'm not affiliated with this site - and I'm not sure if there's a linking policy here, but you can test the difference in the output by checking your page here: http://www.whatsmyip.org/mod_gzip_test/ it shows the original size, and gzipped size. I'm wondering if anybody who has it installed can report the improved numbers factoring in gzip compression.

I'm just thinking - if your real-world size improvement is closer to 1%, then maybe this isn't as good of an idea. If you aren't using gzip compression, then I expect the results from this plugin would be much more dramatic.

Just some thoughts...

----
This was such an easy install, I thought I'd try it out myself. Here are my results:
Plugin Active: [page compression: 81.58 k/98.58 k (17.24%)]
gzip page reports:
Original Size: 84 K
Gzipped Size: 11 K
Data Savings: 86.9%

With the product disabled:
gzip page reports:
Original Size: 89 K
Gzipped Size: 12 K
Data Savings: 86.52%

I find it strange that the website and the plugin report different page sizes, but it's probably a matter of one of them calculating /1024 versus the other one calculating /1000. The plugin did show improvement, but like I expected, not too much. I don't have an active forum, so I couldn't do this test on a lot of pages. I also have no idea how much this plugin would actually affect server load. Probably not that much, but I imagine it's really a question of webmaster preference as to whether or not this is worth it.

Great plugin though hellcat! And a serious amount of improvement for anyone not using compression already.

Bounce
01-29-2006, 12:36 PM
nice one , saving between 10 and 15% depending on the page :squareeyed:

Cheers

beatyourtruck
01-29-2006, 01:24 PM
INSTALLED!

Excellent mod and very easy to do! I am saving 9% to 15% depending on the page.

Thanks! 8)

Hellcat
01-29-2006, 04:45 PM
Yes, they use HTML (just an image and link). Any way in a future version to add a tag that tells it to ignore specified areas, or even something I could implement myself now?
I'm going to implement a HTML tag exclusion in the next update.
Then you can just put every block you want to leave untouched by the compression between <nocompress> and </nocompress> tags and the compressor will not touch it :)

username12
01-29-2006, 07:21 PM
I'm going to implement a HTML tag exclusion in the next update.
Then you can just put every block you want to leave untouched by the compression between <nocompress> and </nocompress> tags and the compressor will not touch it :)

Sounds good. I'll definitely reinstall then.

Hellcat
01-30-2006, 06:52 AM
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.

tgmorris
01-30-2006, 01:44 PM
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?

Hellcat
01-30-2006, 03:49 PM
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 ;)

Zia
01-30-2006, 04:34 PM
Are we going to have any update ??

MissKalunji
01-30-2006, 04:36 PM
works way better! great work Hellcat

DarKNull
01-30-2006, 05:29 PM
my site doesn't show the source code. can it do any harm to search sites not reading the meta keyword and description.

Zia
01-30-2006, 05:38 PM
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??

Hellcat
01-30-2006, 08:53 PM
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.

:)


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 :confused:

Zia
01-31-2006, 06:02 AM
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

Hellcat
01-31-2006, 06:40 AM
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....


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 ;)

bcmedia
01-31-2006, 01:34 PM
Excellent Hack!!! :d

Zia
01-31-2006, 02:02 PM
thankx hellcat..

hope aggresive compress will work w/o any problem :)
good luck mr.coder.....for ur too kool idea

Daracon
02-02-2006, 10:19 AM
Thanks for that nice hack!

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

*klicks install*

BitMite
02-03-2006, 05:21 PM
INSTALLED

Excellent hack, thanks.

swa
02-03-2006, 06:55 PM
awesome hack! thanks!!

TosaInu
02-03-2006, 08:51 PM
:jumping:

dimka
02-03-2006, 11:57 PM
Very nice hack!

thank you.

sportsoutlaw
02-05-2006, 12:48 AM
This works great!

Smiry Kin's
02-05-2006, 01:16 AM
Great Dude! this works with the element skin! thanks so much!

* Smiry Kin's Installs

on index. i get
[page compression: 61.46 k/68.03 k (9.65%)]

Zia
02-05-2006, 04:59 AM
:) Simple a Revulation it s bu HellCat it works like Hell..

Dear HellCat..
its an off.topic...
saving bandwidth there mite be some more way..like changing some CSS or Gzip
i found a topic in other place.....
(im not spaming)

http://www.buildtolearn.com/tutorial-submission-review/12913-saving-your-bandwidth-must-read.html

There he mention about gzip.php ..i dont know there any Gzip.php file or not.. in vb folder..i searched a bit...didnt get that..
can u please have a Heavenly Think about it like hell?

* Zia offers Hellcar 1 box chilled bear..for his deep thinking...

Thnx

Hellcat
02-05-2006, 11:48 AM
vBulletin has a build in option for using gzip compression, no need for a gzip.php or such.

Just go to your AdminCP -> vBulletin Settings and enable GZIP.
This will (ZIP) compress the HTML page, then send it to the browser that will uncompress and display the page.
This way you can save quite some bandwidth on your server, indeed.

This adds some more loadon the server (depending on compression level) and not all browsers support it (in that case the compression in skipped).

Orcun
02-05-2006, 03:23 PM
Hi Hellcat,

I think it does not compress the comments that are included in themes.
For example,

I have a comment like that,

<!-- [START HACK='vB Pager'

// vB Phrases

and I can still see it in the code. Deleting those lines shall provide better compression. What u say ?

Is there a way to decide what kind of comments should be removed ? To a way to change compression level ?

I cant see it in the AdminCP options. Just 3 there.

Hellcat
02-05-2006, 07:16 PM
To make it compatibel with the AnyMedia BBCode the compressor ignores (leaves) HTML comments that contain a square bracket "[".

Removing those from comments will also get that comment removed from the final output.

(Didn't find a better yet to determine if the comment is AnyMedia)

The "//" comments can (and should) be removed as well, yes.
I'll put that one into the next update :)

Codeman05
02-05-2006, 09:40 PM
well I guess from a bandwidth perspective this is potentially worthwhile, but not from a page load time standpoint....in my case anyway.

I am showing a 10-15% compression. However, my page load times go from ~.10-.14s with this disabled, and goes to ~.21-.25s with this hack enabled.

Did anyone else notice this? Or is getting improved performance along with the compression?

Good hack in any case, definately not trying to knock that

Zia
02-06-2006, 02:33 AM
vBulletin has a build in option for using gzip compression, no need for a gzip.php or such.
Just go to your AdminCP -> vBulletin Settings and enable GZIP.
This will (ZIP) compress the HTML page, then send it to the browser that will uncompress and display the page.
This way you can save quite some bandwidth on your server, indeed.
This adds some more loadon the server (depending on compression level) and not all browsers support it (in that case the compression in skipped).

Yes Sir..i had it enable ..i set the compression level to 1....i read many place that 1 is the best...not 9...

Thanu Sir..i got reply of my curiousness :)

thnakx

* Zia still waiting for agressive compression :D

GamerJunk.net
02-09-2006, 10:08 PM
[page compression: 32.33 k/36.59 k (11.64%)]
Page generated in 0.76232 seconds with 9 queries (2 queries for uncached templates) [Server Loads: 10.27 11.02 : 9.51]
Uncached templates: page (1)
Uncached templates: userfield_textbox (15)

What does that mean? It's on my "page" template for my Extra Info (https://vborg.vbsupport.ru/showthread.php?t=98282&highlight=extra+info)

Hellcat
02-09-2006, 10:20 PM
The uncached templates come most likely from another extension, maybe that extra info thingy.

delds
02-09-2006, 11:04 PM
Excellent mod/plugin, good work.

itorrents
02-09-2006, 11:51 PM
A must have I say :D thanks for all your work.

BigTrucK72
02-10-2006, 04:40 PM
Geezus Hellcat... you really rocked this one. Saving anywhere from low to high 30s @ http://forums.xedge.net

Thanks and keep up the good work!

snakes1100
02-10-2006, 04:44 PM
Just a little report for anyone wondering as i was, this is running on www.stuntlife.com/forums/index.php and here are the results.

Currently zlib compression is on in the admincp at lvl 1, plugin off, results:
Original Size: 99 K
Gzipped Size: 16 K
Data Savings: 83.84%

Zlib and Plugin active:
Original Size: 91 K
Gzipped Size: 15 K
Data Savings: 83.52%

Average of 10% saving with plugin active on the main index page of the forums.

I wanted to report as this is a very effective addon, this is a very active site, some stats Threads: 140,204, Posts: 1,807,586, Members: 38,525 so if anyone is wondering about its effectiveness, they shouldn't have to, great job HellCat, thanx very much, the owner of stuntlife appreciates it very much.

Added Note: Page laod times have NOT changed, still between 1.5 - 2.5 after adding the plugin.

dethfire
02-11-2006, 04:12 PM
Just a little report for anyone wondering as i was, this is running on www.stuntlife.com/forums/index.php and here are the results.

Currently zlib compression is on in the admincp at lvl 1, plugin off, results:
Original Size: 99 K
Gzipped Size: 16 K
Data Savings: 83.84%

Zlib and Plugin active:
Original Size: 91 K
Gzipped Size: 15 K
Data Savings: 83.52%

Average of 10% saving with plugin active on the main index page of the forums.

I wanted to report as this is a very effective addon, this is a very active site, some stats Threads: 140,204, Posts: 1,807,586, Members: 38,525 so if anyone is wondering about its effectiveness, they shouldn't have to, great job HellCat, thanx very much, the owner of stuntlife appreciates it very much.

Added Note: Page laod times have NOT changed, still between 1.5 - 2.5 after adding the plugin.

how do you figure out the gzip savings?

Zia
02-12-2006, 03:11 AM
Just a little report for anyone wondering as i was, this is running on www.stuntlife.com/forums/index.php and here are the results.

Currently zlib compression is on in the admincp at lvl 1, plugin off, results:
Original Size: 99 K
Gzipped Size: 16 K
Data Savings: 83.84%

Zlib and Plugin active:
Original Size: 91 K
Gzipped Size: 15 K
Data Savings: 83.52%

Average of 10% saving with plugin active on the main index page of the forums.

I wanted to report as this is a very effective addon, this is a very active site, some stats Threads: 140,204, Posts: 1,807,586, Members: 38,525 so if anyone is wondering about its effectiveness, they shouldn't have to, great job HellCat, thanx very much, the owner of stuntlife appreciates it very much.

Added Note: Page laod times have NOT changed, still between 1.5 - 2.5 after adding the plugin.


Yeap me too wondering....how u defined Zlib & Gzip ststuas?

Smiry Kin's
02-12-2006, 10:40 AM
dude nice lil html function, im just getting into editing vbulletin forums.. damn its addtive!

dethfire
02-13-2006, 09:37 PM
Fatal error: Cannot redeclare cb_script() (previously declared in /home/musicban/public_html/includes/functions.php(4320) : eval()'d code:114) in /home/musicban/public_html/includes/functions.php(4320) : eval()'d code on line 7

Hellcat
02-14-2006, 03:41 AM
Fatal error: Cannot redeclare cb_script() (previously declared in /home/musicban/public_html/includes/functions.php(4320) : eval()'d code:114) in /home/musicban/public_html/includes/functions.php(4320) : eval()'d code on line 7
Are you using it together with Trigunflame's template compressor?

Gripemaster
02-14-2006, 01:23 PM
Very nice!!! *Clicks Install*

Borimikan
02-15-2006, 08:47 AM
great job i got 9.60%!!

dbembibre
02-15-2006, 08:56 AM
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 :p Perfect hack

Hey Lizard, this plugin work well with the geek auto link ?

BillP
02-15-2006, 09:16 PM
I'm testing this compressor, and I'm having a very hard time reconciling the statistics generated by the compressor (as shown to me on the bottom of every page) to the real size of the page.

I am using FireFox with the Web Developer Toolbar, which offers a quick summary of the space used on a page.

The document itself (the HTML for that page, less all external data such as images, CSS, etc.) is the only thing that gets compressed, and that's correct, but I am seeing around 10% savings, but the stats consistently say 22% or so savings.

I'll keep staring at the calculations, but I think the stats are not accurate.

I wonder if Firefox is measuring the GZipped output? My server uses gzip everywhere, and the stats are definitely calculated pre-gzip, the difference could be in the exploded/deflated sizes.

I don't see that I'll be able to measure the true bandwidth savings, as 10% on a page is meaningless compared to the images and CSS that go along with it. For example, my forums home page has 9K of data, 46K of images, 1K of style sheets, and 13K of scripts (vbulletin_global.js, for example). The stats say that my page compression was: [page compression: 65.53 k/84.13 k (22.11%)]

If I turn off the page compression, the document increases from 9K to 10K, all other stuff remains the same, so Firefox reports a 71K page.

I just can't reconcile this. Can anyone else see similar results?

BillP
02-15-2006, 09:20 PM
OK, to be fair, I loaded some larger pages and the size difference is higher, ~25% I am seeing now.

This has got to be a gzip issue, as the page size changed from 19K down to 6K, but the stats from this product said it was from 162K to 125K.

Hmmmmm.....

BillP
02-15-2006, 09:37 PM
Well, it's gotta be something to do with the gzip capabilities of Apache. Firefoxs numbers are way too low. I did a "wget" of the page with HELLCAT's compressor turned off and on, and the real data is 5x what firefox reports.

If you are using Gzip, the real difference is not going to be as big as you would think from looking at these numbers. And you are just trading off CPU utilization in mod_gzip for cpu utilization in Hellcat's compressor.

BUT, the resulting file is smaller at browswer, which is still a good thing.

Akagi
02-16-2006, 12:07 AM
clicks install..:D installation couldnt be easier!

armagan
02-16-2006, 01:27 PM
[page compression: 23.05 k/27.93 k (17.48%)]
[page compression: 120.00 k/140.53 k (14.61%)] :)

Smiry Kin's
02-16-2006, 05:49 PM
Installed. One minor glitch:https://vborg.vbsupport.ru/external/2006/02/2.png

See the little "-->" HTML close comment thingie? Is that a problem in your code, or perhaps mine?

ermm looks like yours dude?

uninstall it, is it still there?

emin3m
02-16-2006, 07:24 PM
thanx GOD ur removing comments on global_complete, cz i replace stuff in parse_template
AWESOME MOD

emin3m
02-16-2006, 08:16 PM
replace
$output = preg_replace('/>[\s]+</', "> <" ,$output );
with
$output = preg_replace('/>[\s]+</', "><" ,$output );

save more :D
1%-3%

Hellcat
02-16-2006, 11:26 PM
Yep, the problem is with nested HTML comments.

Evidently, you capture the first "-->" to end the comment, so anything else, including the real final "-->" is html-encoded and added to the response stream.

Deleting the internal comment-blocks solved the issue, but it might be something you look at.
I will look at this and make an update! :up:



replace
$output = preg_replace('/>[\s]+</', "> <" ,$output );
with
$output = preg_replace('/>[\s]+</', "><" ,$output );

save more :D
1%-3%
Only problem here is this WILL break certain spots of your style since intentional spaces are cut out as well!
That's why I added the space, see a few pages earlier. :)

MR-2ZZ
02-17-2006, 04:03 AM
Installed...

14% average!

Sculli
02-18-2006, 06:41 PM
Excellent product, sorry you got bunched into a HotM competition with eBux/eStore, if it weren't for those you'd be taking the crown this month! ;)

Hellcat
02-19-2006, 11:01 PM
I edited the RegEx a bit, so nested HTML comments will not be messed up anymore.
However, if you have nested comments the "parent" comment will not be stripped at the moment.


Excellent product, sorry you got bunched into a HotM competition with eBux/eStore, if it weren't for those you'd be taking the crown this month! ;)
That's life....
But I got nominated - that's a least a start ;)

katholic
02-21-2006, 12:30 PM
I just have to say thankyou! I have noticed as much as 20% on some pages.

JagFan
02-22-2006, 07:46 PM
Thank you! Installed and working great!

pspcrazy
02-23-2006, 12:27 AM
Thank you! Installed and working great!

on my frums it only saves 1.30 percent. Thats the same as the other one :(

Hellcat
02-23-2006, 12:37 AM
on my frums it only saves 1.30 percent. Thats the same as the other one :(
Cheer up, that could mean you already have highly optimized pages anyway :):up:

Tefra
02-23-2006, 09:37 AM
after the update to 1.24 the compress ratio has reduced. It used to be 2-3% everywhere.

cbr929rrerion
02-23-2006, 11:30 PM
Installed..

8-14% here

darkilla2
02-23-2006, 11:34 PM
same here as above

Hellcat
02-24-2006, 01:06 AM
after the update to 1.24 the compress ratio has reduced. It used to be 2-3% everywhere.
A small drop in ratio can happen if you have nested comments in the pages.
I changed the RegEx for them to no longer mess up, but the parent comment get's not stripped ATM....

quanvo81
02-24-2006, 01:50 AM
I have a question, I don't know if it's in appropiate forum or not, but I have to ask.
I have installed several hacks, I click INSTALL every hack that I installed, but why there are a fews hack that send me email notify about update, some don't. Like this hack, I don't get any email notify me about update.

Am I missing something? Is it just the way it work that the purpose of clicking INSTALL button?

Hellcat
02-24-2006, 06:06 AM
I have installed several hacks, I click INSTALL every hack that I installed, but why there are a fews hack that send me email notify about update, some don't. Like this hack, I don't get any email notify me about update.

Am I missing something? Is it just the way it work that the purpose of clicking INSTALL button?
It's the authors (in this case me as well.... :nervous: ) who are missing something.
Namely, hitting the "Send Update" button....

I usually reply in my release threads when there's an update, but seeing that not everyone has eMail notification set for the threads I should make more use of the update button as well....

* Hellcat promises to do better in the future :)

Paul M
02-24-2006, 07:10 AM
Am I missing something? Is it just the way it work that the purpose of clicking INSTALL button?It is not the sole purpose of the install button. Also, most coders do not send out updates unless there is a significant change.

quanvo81
02-24-2006, 11:45 AM
Thanks guys . I thought everyone got the update email, except me. Now I feel better

sananedir
02-24-2006, 01:26 PM
i have a warning this mod creates too much heavy load. the version before this one was not.

Paul M
02-24-2006, 04:04 PM
i have a warning this mod creates too much heavy load. the version before this one was not.I think I'll stick with 1.22 then as it works fine, esp as there is no version history detailing the changes.

Marse
02-25-2006, 07:28 AM
For speed of download vs processing speed what savings can I expect to make on an already heavily used web server?

I've installed, thanks, will report back later

Hellcat
02-26-2006, 07:43 AM
i have a warning this mod creates too much heavy load. the version before this one was not.
I am currently in the process of getting a better understanding of regular expressions., so in the near future I'll make a version version with optimized RegEx and such.


I think I'll stick with 1.22 then as it works fine, esp as there is no version history detailing the changes.
Putting that together as well....

pspcrazy
02-27-2006, 06:33 AM
I am currently in the process of getting a better understanding of regular expressions., so in the near future I'll make a version version with optimized RegEx and such.



Putting that together as well....

well i wont be using this, but thats for releaasing this :). Im sure others will benefit from it.

MPDev
02-28-2006, 06:20 PM
I have a very large thread that for some reason is getting a hang on page 202:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/***/forum/includes/functions.php(4322) : eval()'d code on line 67

line 67 is:

$output = preg_replace('/\/\*.*?[^\b\*\/\b]*?.*?\*\//',"" , $output);

Any idea what would cause a timeout on a single page and none of the other 200 or so?

Tefra
02-28-2006, 07:16 PM
can someone attach the 1.22 version i thought i had stored it somewhere but i can't find it.

MPDev
02-28-2006, 09:08 PM
I have a very large thread that for some reason is getting a hang on page 202:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/***/forum/includes/functions.php(4322) : eval()'d code on line 67

line 67 is:

$output = preg_replace('/\/\*.*?[^\b\*\/\b]*?.*?\*\//',"" , $output);

Any idea what would cause a timeout on a single page and none of the other 200 or so?

Just as a followup - I removed this line and all seems well; even if I am missing a few percentage points. At least people can read the thread now.

Hellcat
02-28-2006, 10:27 PM
Hmm, the hang is weird.... seems like there's much to process on that page.
I hope the load will reduce with the new RegEx's....

popowich
03-02-2006, 02:48 AM
can someone attach the 1.22 version i thought i had stored it somewhere but i can't find it.

I am interested in the recommended version as well.

-Raymond

tgmorris
03-02-2006, 03:39 AM
can someone attach the 1.22 version i thought i had stored it somewhere but i can't find it.Here ya go.

Joey805
03-02-2006, 04:59 AM
Does this work ok with 3.54?

MissKalunji
03-02-2006, 05:12 AM
Does this work ok with 3.54?

yes it does :)

Tefra
03-02-2006, 10:16 AM
Here ya go.

thanks m8 :nervous:

exilera
03-02-2006, 11:36 AM
I'm reading roughly 6-10% compression for my pages on average. Is this a common number? I'm reading up near 20% for other users.

Using version 1.2.4 by the way.

punch
03-02-2006, 03:21 PM
This is very good idea.

I'm quite impressed! Great work.

activa
03-02-2006, 03:48 PM
installed thanks

balikci
03-06-2006, 03:41 AM
%8-13 compressed, thanks.

*installed

mr. visual
03-07-2006, 11:45 AM
Excellent work - thanks.

Zia
03-09-2006, 02:22 AM
:) hello HellCat..
where are u? Since long time n no update.......

Hellcat
03-09-2006, 03:49 AM
Still here.
Much work on my hands at the moment.
And I am trying to get more into regular expressions. I am planning on comletely rewriteing the regex of this :)

Treak
03-09-2006, 04:24 AM
wow man.....

whats ur site????

very very fast mod!! and works effciently!! :tup: to you!

erinys
03-10-2006, 07:00 AM
awesome work! ive installed it!

Zia
03-11-2006, 04:42 PM
Still here.
Much work on my hands at the moment.
And I am trying to get more into regular expressions. I am planning on comletely rewriteing the regex of this :)

:) we everybody highly appriciate that..

Thnx.

zappsan
03-11-2006, 11:47 PM
Thanks for the great hack.
/me clicks install

David_R
03-12-2006, 12:32 AM
will this hack create problem with any custom modifications on site ?

RaceJunkie
03-12-2006, 08:38 PM
Works great but i use this code in my Show Thread template. right now I have it at the very top. If i turn this hack on, it will disable this code. Is there something i can do to prevent this?

<script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontext menu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>

Freesteyelz
03-13-2006, 11:40 PM
So far this is working out nicely. Thank you, Hellcat. *Clicks install*

While I haven't gone through the entire thread my guess as to why people are having different compression rates would equal to the amount of coding that needs to be compressed. It's all relative. I'm averaging high 14% with a scale between 11% - 19% (possibly more). On the high at the Calendar "yearly" view I've hit 31.41%. Again, great job. :)

Deimos
03-21-2006, 04:08 PM
Quick question

I often copy news from various sites and paste it into the WYSIWYG editor, but for some reason, it removed the spaces between the paragraphs/lines
I assumed it was the compressor, but even after removing it or using the <nocompress> tag, it still did it
Is this a non compressor issue? heh

hydn
03-23-2006, 12:52 AM
I removed your hack and install the temple compressor with crashed my forums. I reuploaded the entire forums directory.

Now i reinstalled yours compression is down to 1 - 3 % it use to be more like 10 - 15%

I also upgraded to 3.5.4 since i installed your hack.

Do you think 3.5.4 is better compress thant 3.5.0?

HHU
03-24-2006, 05:45 AM
Installed.. uppin your thread

Harry72
03-24-2006, 02:56 PM
Cool and very useful. Page compression between 7 - 15 %. Thx a lot.

EBdotCX
03-25-2006, 11:34 AM
For some reason, this thing doesn't seem to be removing HTML comments from my forums. :(

ThorstenA
03-28-2006, 09:40 AM
Hi,

do you think forum speed will improve by using this hack?

SaN-DeeP
04-04-2006, 11:33 PM
Works great but i use this code in my Show Thread template. right now I have it at the very top. If i turn this hack on, it will disable this code. Is there something i can do to prevent this?

<script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontext menu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>
i have the same problem.

boatdesign
04-05-2006, 06:07 AM
I'd call that a feature since all that script really accomplishes is to annoy your users ;)

boatdesign
04-05-2006, 06:12 AM
Awesome plugin. Only one thing - the control panel -> options reads If you want the stats to show up puplically leave this on
I don't know what "puplically" means but I don't think I want it to show up that way :rolleyes:

Heo13
04-24-2006, 09:23 PM
It's a typo. He means "publically" :)

boatdesign
04-24-2006, 09:26 PM
I know - I was just teasing so he can fix it in the next update if there is one -- it's a great plugin!

El-Gazaly
05-03-2006, 03:33 PM
Many Thanks
Installed

5wayshosting
05-07-2006, 02:56 PM
Very nice mod. Thank you very much for this. I need this when the forum is new.. cheers

mano1.com
05-13-2006, 02:51 PM
Installed! Saving about 10%

Thanks!

Benedict
05-14-2006, 05:25 PM
Hi, can this be used in conjunction with the template caching hacks?

Razasharp
05-27-2006, 04:46 PM
I installed this on a test forum using 3.5.4 but it's not stripping the html comments... any ideas why?

It's still saying about 10% saving but when viewing source the comments are still there..

For eg:

</table> <!-- Start Sponsor Ads code or Announcements banner code--> <!-- Start show Banner ads --> <!-- ////////// Banner ad ////////// --> <table id="bigbanner" cellspacing="0"><tr><td id="bigbannerone"><img src="images/tilecl.gif" /></td><td id="bigbannertwo">....


Any ideas why? :-/
It seems to have removed white space tho..

klaus
06-01-2006, 06:44 AM
One of our users used the below signature and threads could not be opened with his posts in it. Instead an error message apeared.

Error Message:
Fatal error: Maximum execution time of 60 seconds exceeded in /path/forum/includes/functions.php(4367) : eval()'d code on line 67

Exact Signature used by user. Square brackets replaced with shift-square brackets {} [] :

Just a Friggin Fan.
__________..........................
H3___l__\___\ __............./\^/\
---\___)----o|||||o......../\^/^\
(@) )---(@) ) ¯¯ ) )....../*2007*\
^^^^^^^^^^^^ ..../*DAKAR* \
{url}www.flyhiflylo.blogspot.com{/url}

Hellcat
06-08-2006, 08:22 AM
Howdy :)

Concerning vBulletin 3.6 (beta 1):
This seems to be working fine under vB3.6b1.

At least I didn't encounter any problems while testing ;)

Frzzy
06-11-2006, 12:33 PM
Please replace this in your code so the one with no permission to view the stats won't get the un-recorgnized HTML code when using HTML tag output.

replace

{

{


at the end of the plugin code with

}
else
{
$output = str_replace('<cmpstat />','' , $output);
}

}

Yorixz
06-25-2006, 09:37 AM
Howdy :)

Concerning vBulletin 3.6 (beta 1):
This seems to be working fine under vB3.6b1.

At least I didn't encounter any problems while testing ;)
Didn't return any errors for me (Beta 3) neither, seems to work just as good as with vB 3.5 ;)

marksman1
07-02-2006, 01:14 PM
I just installed this on a new 3.6 Beta 3 and it is working great. With only a slightly modified default template, I am seeing ~10% compression. Thanks for the nice mod that was painless as painless can be to install.

Zia
07-20-2006, 09:02 AM
hi HellCat..

:p hope ur not getting idle....

please relase an update for vb3.6.0 ....:)

* Zia offe hc a chilled bear

Morrighan256
07-21-2006, 09:50 PM
This hack is a thing of beauty, Hellcat, thank you!

DF-inside
08-07-2006, 07:35 PM
Can anyone tell me if this hack is workin on VBB3.6.0?

firstrebel
08-07-2006, 08:50 PM
Doesn't 3.6.0 have built-in compression?

Bob

steven s
08-09-2006, 11:00 AM
Can anyone tell me if this hack is workin on VBB3.6.0?Appears to on my board.

Mattikana
08-09-2006, 11:14 AM
Doesn't 3.6.0 have built-in compression?

Bob
It's not on the features list afaik.

alaadin2003
08-23-2006, 01:22 AM
I need it to vb 3.6.0

thanks

MissKalunji
08-23-2006, 05:05 AM
I need it to vb 3.6.0

thanks


works on 3.6.0 so far *knocks on wood*

jw00dy
08-29-2006, 07:25 AM
working on 3.6.0 here as well.

*clicks install*

mIRCnet
09-04-2006, 10:16 AM
Does this work for vB 3.6.0 Gold?
I have mod_gzip installed in my server, and its enabled in vBulletin Optins using level 9, more over i am using this hack Plugin Based Template Cache (https://vborg.vbsupport.ru/showthread.php?t=121876)
so does it work with it?

Robru
10-14-2006, 07:00 PM
Work good with 3.6.2 :)

JMH11788
10-20-2006, 08:05 PM
Work good with 3.6.2 :)

Same here :up:

The Chief
11-02-2006, 02:14 PM
Same here :up:
Good to know :D

flindersredclaw
11-12-2006, 11:06 PM
No issues on 3.6.1 and gaining 8 to 15% saving.

Thank you.

Zachery
11-12-2006, 11:08 PM
Honestly, apologies to Hellcat, but this is a useless modification, any compression that is done by php should be done in the template conviersion, also anyone using gzip will already be getting these benifits and all this does is increase the load of the server. Gzip/mod_deflate would be prefered over this method.

Augustino
01-04-2007, 06:55 PM
How can I include this product, using it in my own templates, What should I include?

Honestly, apologies to Hellcat, but this is a useless modification, any compression that is done by php should be done in the template conviersion, also anyone using gzip will already be getting these benifits and all this does is increase the load of the server. Gzip/mod_deflate would be prefered over this method.

How can I implement Gzip/mod_deflate?

BobbyBig
01-23-2007, 11:43 AM
People Take Care.

This Modification has destroyed my Style + some Functions of the Forum. I had to replace the whole Style from a Backup.

What happend: In the AdminCP on the Style Edit Page (Header, Footer , etc) Changes hadnt been done for like 30min. After pressing the Save Button to save the Style Edit Page, the Login Window appeared because no changes for a long time (autologout).

After logined the Page gets redirected to save the Style -> Here the Error happens with this Modification: The Whole Style data gets changed to non Line Breaks etc = unreadable.

But: it also saves the eval Data to the Fields. For example if you have a Style Replacement Variable defined, its saves the new Style Data with the Variabels REPLACED.

After this also my PM's only got send with empty Text. New Threads also couldnt be created because vBulletin said they are empty..

So ppl take care of that modification, it could destroy your whole Style + More.

regards

rjmjr69
02-01-2007, 07:43 AM
It alters the output, it does not touch pre-rendered templates.

Dave

Nice works great in 3.6.4 Average is roughly 8% Thank you

fuldon
03-18-2007, 06:14 PM
vB 3.6.4

Problem

Text
/*

Shazz
03-18-2007, 06:15 PM
vB 3.6.4

Problem

Text
/*

Huh?
Where?

fuldon
03-18-2007, 06:20 PM
Example
http://www.mixei.ru/showthread.php?t=40446
http://www.mixei.ru/archive/index.php/t-40446.html

Documents/*Sims2/Collections

LeatherNeck
06-14-2007, 12:43 PM
works a treat on 3.6.7PL1 thanks :)

PlymWS
06-15-2007, 09:13 PM
3.6.7 PL1

Installed perfectly. This is the kind of product I like :)

RTFA
08-23-2007, 02:20 PM
Any body running this on 3.6.8?

Zachery
08-25-2007, 12:01 PM
I wouldn't run this at all, its muchb etter to run gzip, it does the same thing.

dethfire
10-25-2007, 09:51 PM
I wouldn't run this at all, its muchb etter to run gzip, it does the same thing.

If I run gzip and goto view source the source is not compressed.

Zachery
10-25-2007, 09:53 PM
Yes, while that is true, its like a zip file, the webserver zips the file then sends it to your browser and the browser unzips it.

boatdesign
10-25-2007, 11:36 PM
I don't think there's a ton to gain by compressing the html if you're gzipping anyway, but I suspect you do gain a tiny bit; if you're users are rural folks still stuck on 28k dialup, every bit can still make a difference.

mahmuttunc
01-22-2008, 10:19 AM
can i use it on 3.6.8

BozzaJos
05-03-2008, 11:50 AM
Any body running this on 3.6.8?

can i use it on 3.6.8

I am running it on 3.6.10 and it is working...

MissKalunji
05-03-2008, 12:16 PM
and i tested on Gold

Zachery
05-03-2008, 10:22 PM
Like I stated before, realtime compression (done on export) is silly, it would be best to compress this when saving the templates.

MissKalunji
05-04-2008, 02:50 AM
there used to be one doing that but the coder never showed up here since i think 2005

shokmuzik.com
05-13-2008, 01:41 PM
Try Compress Forum Templates (https://vborg.vbsupport.ru/showthread.php?t=107615), it works with vB 3.7 but is still incompatible with TMS.

cmedic101
12-09-2008, 10:55 AM
I'm using this on 3.74 and seems to be working fine getting around 8.5% compression.
It also cut aaround 3.0 seconds off my forum home page load time.

cmedic101

Zachery
12-12-2008, 11:26 PM
I'm using this on 3.74 and seems to be working fine getting around 8.5% compression.
It also cut aaround 3.0 seconds off my forum home page load time.


cmedic101
Gzip would do the same and take less resources.

Nadeemjp
04-22-2009, 09:21 AM
where can i get the 3.8.2 version of this hack?

Zachery
04-24-2009, 02:16 PM
where can i get the 3.8.2 version of this hack?
You don't. you Enable gzip and get the same results.

Infopro
06-15-2009, 10:04 AM
You don't. you Enable gzip and get the same results.

We get it. 6 posts to this thread all stating the same thing. Similar posts in the css optimize thread and who knows where else. We get it. You don't like these. You've tested and proven beyond a shadow of a doubt that these things don't work. For you. But you don't show those findings, you just keep spamming other peoples threads with your comments.

Get on with it. Close or delete what you don't like.



BTW, no sign of you over here yet, have at it.

https://vborg.vbsupport.ru/showthread.php?t=202843

Zachery
06-15-2009, 01:11 PM
We get it. 6 posts to this thread all stating the same thing. Similar posts in the css optimize thread and who knows where else. We get it. You don't like these. You've tested and proven beyond a shadow of a doubt that these things don't work. For you. But you don't show those findings, you just keep spamming other peoples threads with your comments.

Get on with it. Close or delete what you don't like.



BTW, no sign of you over here yet, have at it.

https://vborg.vbsupport.ru/showthread.php?t=202843
Andrea's addon, from what i looked over, does it once and only once, instead of on each request/pageview. There is a massive huge difference.

kyrenator
09-21-2009, 06:09 PM
does this work with vb 3.8?

MissKalunji
09-21-2009, 07:13 PM
I think it does but VB does that already so no need on adding this if i remember right

Darkimmortal
12-10-2009, 06:18 PM
FYI: this still works in vB4, you just need to disable stats and take out the fetch_template line.

Think I might add functionality based on this to my vB4: SuperCharged mod, if the OP doesn't mind of course.

Zachery
12-10-2009, 09:40 PM
Still not something you should do in realtime. If you're going to compress the templates, do it on save.

Darkimmortal
12-13-2009, 06:17 AM
4 or 5 regexes on every page load isn't all that intensive :P

Zachery
12-13-2009, 12:15 PM
You can't be serious?

But you could do it once, period, and save so many cpu cycles.

hydn
04-28-2010, 04:27 PM
We see no noticeable CPU hits with this enabled.

Zachery
04-28-2010, 05:02 PM
doing it in real time is a very very very bad idea.