vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   HELLCAT's Realtime Page Compressor (https://vborg.vbsupport.ru/showthread.php?t=106333)

MPDev 02-28-2006 09:08 PM

Quote:

Originally Posted by MPDev
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:

Code:

$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

Quote:

Originally Posted by Tefra
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

Quote:

Originally Posted by Tefra
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

Quote:

Originally Posted by Joey805
Does this work ok with 3.54?

yes it does :)

Tefra 03-02-2006 10:16 AM

Quote:

Originally Posted by tgmorris
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

Quote:

Originally Posted by Zia
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

Quote:

Originally Posted by Hellcat
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?
Code:

<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.oncontextmenu=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

Quote:

Originally Posted by RaceJunkie
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?
Code:

<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.oncontextmenu=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
Quote:

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:

Quote:

</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 :)

[high]Concerning vBulletin 3.6 (beta 1):[/high]
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
Code:

{

{

at the end of the plugin code with
Code:

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

}



All times are GMT. The time now is 05:50 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01412 seconds
  • Memory Usage 1,818KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete