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)

Carnage 01-17-2006 01:03 PM

ok, well here is your solution to all the bugs. One problem is its in english and not php...

You need to parse out multiple white spaces + newlines in all of the code, you also need to remove html comments. HOWEVER you must ignore anything between <pre> <textarea> and <script> tags.

Ok well theres the brief... i'll see what i can do in a bit. (I think a good starting place would be to see how Vb3.5 handles bb tags especially the [nocode] tag or whatever it is that prevents bb code parsing between it.)

edit:
Well i've been messing arround for a bit and havn't got anywhere... The only 'hacked' solution i could come up with is to match the text area tags to a variable do the white space removal and put the text areas back in again.

ryuji 01-18-2006 03:07 AM

when i get bored ill try my hand at making it conditional... but with my setup it appears immune to the issue unless i use the commented out line of code instead of what i actualy had enabled

Carnage 01-18-2006 03:12 AM

this problem is really bugging me now... i haven't been able to come up with a singal working regex expression...

Guest210212002 01-18-2006 03:33 PM

Leaving it installed but disabling it for now. The linebreaks in advanced mode are just impossible to work around.

Guest210212002 01-19-2006 02:42 AM

Can this be modded to only strip commented out code?

ryuji 01-19-2006 09:33 AM

yes. comment out the fist replacment command

voleibolmurcia 01-20-2006 12:55 PM

How could i make that the text...

[Output: 37.45 Kb. compressed to 36.00 Kb. by saving 1.45 Kb. (3.87%)]

be in the same color that the background?

I dont find the template o the code in the footer for this hack.

Thank u.

Guest210212002 01-20-2006 01:33 PM

Quote:

Originally Posted by voleibolmurcia
How could i make that the text...

[Output: 37.45 Kb. compressed to 36.00 Kb. by saving 1.45 Kb. (3.87%)]

be in the same color that the background?

I dont find the template o the code in the footer for this hack.

Thank u.

From what I can tell by reading the thread a few times (don't hold me to this) the compression, and that expression, are processed before the templates themselves.

Your best bet is to try editing the plugin itself.

ryuji 01-20-2006 03:07 PM

Quote:

Originally Posted by Chris-777
From what I can tell by reading the thread a few times (don't hold me to this) the compression, and that expression, are processed before the templates themselves.

Your best bet is to try editing the plugin itself.

actualy... what he wants to change is processed after the page is completely made... so its after the templates

Dave-ahfb 01-20-2006 09:10 PM

just open the xml and find this line

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


All times are GMT. The time now is 07:44 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.01408 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_code_printable
  • (2)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