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)

Martin 06-19-2005 06:07 AM

I think what it's doing is killing the space in the XML compliant line break, breaking it

<br />

becomes <br/>

ja3 06-19-2005 06:22 AM

Hmm strange. It doesnt happen here.

Martin 06-19-2005 06:27 AM

Quote:

Originally Posted by ja3
Hmm strange. It doesnt happen here.

It might well be the interaction with another plugin, though the only one i have that affects the postbit is the Buddy/Ignore one.

As long as it affects Quick Edit, I wouldn't use it anywhere except my test board, anyway.

Xplorer4x4 06-19-2005 10:19 AM

Will this work for 3.0.7? I dont see the "Plugin System" in the Admin Control Panel.

Thanks.

womensden 06-19-2005 12:58 PM

Quote:

Originally Posted by Xplorer4x4
Will this work for 3.0.7? I dont see the "Plugin System" in the Admin Control Panel.

Thanks.

3.0.7 doesn't have the plugin system.

Dep 06-19-2005 01:04 PM

i use what ja3 said i get better compression with that

Quote:

Originally Posted by ja3
$output=preg_replace ('/<!-- .*? -->/',"",$output);


ja3 06-19-2005 05:28 PM

I found a little error in my code, fixing this asap :)

ShiningArcanine 06-20-2005 08:32 PM

Quote:

Originally Posted by Martin
It might well be the interaction with another plugin, though the only one i have that affects the postbit is the Buddy/Ignore one.

As long as it affects Quick Edit, I wouldn't use it anywhere except my test board, anyway.

Martin, would you be able to provide me with copies of the page in question's XHTML source one without the plugin and one with?

Xplorer4x4 06-21-2005 06:36 PM

Quote:

Originally Posted by womensden
3.0.7 doesn't have the plugin system.

Is there anyway I can install it anyways? Through my hosting datbase perhaps?

Martin 06-21-2005 09:25 PM

ok, 2 days now, no changes to your code and it seems to be working as advertised. Musta been one of those strange, flukey things.

ShiningArcanine 06-22-2005 02:41 AM

Quote:

Originally Posted by Xplorer4x4
Is there anyway I can install it anyways? Through my hosting datbase perhaps?

I didn ask for permission to release a version for 3.0.x but try copying and pasting the PHP code from the XML file into the phpinclude_end template. ;)

Quote:

Originally Posted by Martin
ok, 2 days now, no changes to your code and it seems to be working as advertised. Musta been one of those strange, flukey things.

Probably.

Marco van Herwaarden 06-22-2005 04:52 AM

Could this hack please be uploaded as a zip-file.

Thank you.

merk 06-22-2005 05:52 AM

Has anyone tested how many microseconds it actually takes to do this "compression"?

Interesting idea, but wouldnt it be better to strip the whitespace from templates as they are retrieved, not from the final page output? (meaning post data doesnt have whitespace stripped..)

Xplorer4x4 06-23-2005 09:10 PM

Quote:

Originally Posted by ShiningArcanine
I didn ask for permission to release a version for 3.0.x but try copying and pasting the PHP code from the XML file into the phpinclude_end template. ;)

:) Once i realized not to put any of the < > codes in there, it worked just fine. [Output: 59.22 Kb. compressed to 56.71 Kb. by saving 2.51 Kb. (4.24%)]

Thank you very very much. This is a great mod and EVERYONE should have this installed!

Cole2026 07-01-2005 01:35 AM

Quote:

Originally Posted by Xplorer4x4
:) Once i realized not to put any of the < > codes in there, it worked just fine. [Output: 59.22 Kb. compressed to 56.71 Kb. by saving 2.51 Kb. (4.24%)]

Thank you very very much. This is a great mod and EVERYONE should have this installed!

This corrupts the javascript in the WYSIWYG editor, it renders it useless. :(

MentaL 07-01-2005 01:59 AM

work on b3?

Chris M 07-01-2005 10:30 AM

Does for me :)

Satan

MentaL 07-01-2005 02:05 PM

Installed and featured on www.ragezone.com

shiva 07-16-2005 08:48 AM

anyone know why I am getting the same compression message at the top of my page, just under the logo, and at the bottom of the page at the end of the footer?

pepel13 07-27-2005 12:48 AM

Quote:

Originally Posted by shiva
anyone know why I am getting the same compression message at the top of my page, just under the logo, and at the bottom of the page at the end of the footer?

Same thing for me

Is it possible to remove that ??

FleaBag 07-28-2005 02:00 AM

Glad to have this for 3.5. Seems to be working well! :)

safiel 07-30-2005 09:38 PM

Quote:

Originally Posted by shiva
anyone know why I am getting the same compression message at the top of my page, just under the logo, and at the bottom of the page at the end of the footer?

This code is placing its compression stats output after your HTML </body> tag. If it is happening twice that means you have two </body> tags, which you shouldn't.

p.s. This is also throws off my tables.

WonderWorm 08-11-2005 10:01 AM

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

jugo 08-11-2005 12:56 PM

Is it because the Comment tags are being replced??

If so, Why not use .js scripts and include them instead of putting Java code into the templates.

Just a thought.

Boofo 08-11-2005 01:25 PM

What is the actual code that seems to be working best for everyone?

Cyricx 08-11-2005 02:06 PM

Odd, I'm running it on RC2 and I am having no issues with advanced or normal edit or quick reply.

If you leave all the others on and turn this one off does it still do it?

It sounds like you've got a conflict between this plugin and another.

Brandon Sheley 08-17-2005 07:23 AM

this worked great, first try.
i'm wondering do the plugins work as well with custom skins :-/ i'll have to do some searching :p

thx for the plugin
*clicks install*

diettalk 09-14-2005 06:59 AM

This is happening to me as well with RC3. Is there a way to ignore posting pages or anything between textarea codes?

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


BamaStangGuy 09-14-2005 02:55 PM

Confirmed here as well

paulius 09-18-2005 03:43 AM

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!

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 04:18 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.01606 seconds
  • Memory Usage 1,828KB
  • 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
  • (4)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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