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)
-   -   Realtime Template Compressor: Reduces page sizes, loads pages faster, saves bandwidth (https://vborg.vbsupport.ru/showthread.php?t=83248)

jribz 09-25-2005 04:24 PM

Quote:

Originally Posted by ja3
I use
$output=preg_replace ('/(\s*)\r\n(\s*)/', "", $output);
$output=preg_replace ('/<!-- .*? -->/',"",$output);

and get about 15% compression, don't know why you still need the \r\n? :)

ja3, I noticed a bit later in this thread you detected an error in your code, but I didn't see you place a fix for it. If I use both lines you have here I get an error on the page with certain dimensions and directories (like the misc image directory not being defined. But if I just use the second line I get no errors and about 10 - 15% compression. Was there a fix for the first line?

bloodwrath 09-28-2005 02:43 AM

works great for me
my pages load so fast i didnt notice they changed
thanks....

SHANE-D-PAIN 09-28-2005 04:42 PM

Cool Hack

Did not think i would have noticed much of a difference but i do and that rocks my socks off or something along those lines....


*Clicks install*

Noonster 09-30-2005 10:37 AM

Quote:

Originally Posted by WonderWorm
Currently having problems with this plugin for RC2. When I use the advanced edit I lose all formatting for the standard editor. Here is some screenshots to show what I mean. It shows up fine in the quick edit but once I go advanced it loses all the breaks.

http://www.emufanatics.com/quickedit.jpg

http://www.emufanatics.com/advanced.jpg

At first I thought this was being caused by RC2 but after turning off some plugins I narrowed it down to this one. Any help would be appreciated. :)

I am getting the same Problem with the Gold release :(

Anyone know how to fix the problem??
- I have turned the plugin off for now!

Cheers
Darren

Bulent Tekcan 10-02-2005 07:39 AM

Yes same problem here,I'm already disable it...

jugo 10-03-2005 04:08 PM

finally installed this. I only get an average of 2K per load Savings, but like my wife always says, a penny here and a penny there is a whole lotta dollars down the road.

BTW: Works fine do far on GOLD!!!

kaniksu 10-03-2005 04:53 PM

Just installed, everything looks good... I just loaded a thead:

[Output: 168.10 Kb. compressed to 142.74 Kb. by saving 25.37 Kb. (15.09%)]

Fenriz 10-04-2005 11:45 PM

If I don't want any text information about compression, what should I delete from the xml-file?

jribz 10-05-2005 06:51 AM

Quote:

Originally Posted by Fenriz
If I don't want any text information about compression, what should I delete from the xml-file?

That is answered in this post here: https://vborg.vbsupport.ru/showpost....6&postcount=70

Fenriz 10-05-2005 10:08 AM

Quote:

Originally Posted by paulius
This works great for me!

As a little note... I found a way to remove the statistics message at the footer of each page by removing the following lines of code in the plugin:
Code:

$output = str_replace('</body>', '<center><span class="smallfont">[Output: ' . $page_kilobyte . ' Kb. compressed to <b>' . $pagenew_kilobyte . '</b> Kb. by saving <b>' . $pagesaved_kilobyte . '</b> Kb. (' . $pagesaved_perc . '%)]</span></center></body>', $output);
Cheers and great plugin! I hope that you improve it to make it even more powerful!

I think that you also can remove
Code:

$pagenew_byte=strlen($output);
$page_kilobyte=number_format(($page_byte/1024),2);
$pagenew_kilobyte=number_format(($pagenew_byte/1024),2);
$pagesaved_byte=$page_byte-$pagenew_byte;
$pagesaved_kilobyte=number_format((($pagesaved_byte)/1024),2);
$pagesaved_perc=number_format(((100*$pagesaved_byte)/$page_byte),2);

and leave only
Code:

$page_byte=strlen($output);
$output=preg_replace ('/\r\n(\s*)/', "\r\n", $output);



All times are GMT. The time now is 01:50 PM.

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.01369 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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