vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Compress Forum Templates (Speed up your Forums & Save Bandwidth) (https://vborg.vbsupport.ru/showthread.php?t=79923)

Trigunflame 04-15-2005 12:57 PM

Quote:

Originally Posted by Cyricx
This weekend I'm refreshing my test site with the live site files, then I'll give this a healthy test run :)

Ya this modification is really experimental.. main reason I didn't go into large coding detail or write a very large documentation.

Although after the latest code change, I'm pretty sure it fixed the problem with JS.

buro9 04-15-2005 03:08 PM

Quote:

Originally Posted by Trigunflame
Ya this modification is really experimental.. main reason I didn't go into large coding detail or write a very large documentation.

Although after the latest code change, I'm pretty sure it fixed the problem with JS.

Very nice Trigunflame.

Negates the one I was working on for Zero Tolerence ;) (I'm stuck with a fried hard-drive so it's in limbo... so I really appreciate this being picked up by someone else :))

I'm actually going to install this myself... even though I wrote the compress hack :D

buro9 04-15-2005 03:36 PM

I've sent an update from my hack to let people know of yours.

I think it's a very valuable addition to any vBulletin admins arsenal of essential hacks :)

Trigunflame 04-15-2005 03:45 PM

Quote:

Originally Posted by buro9
I've sent an update from my hack to let people know of yours.

I think it's a very valuable addition to any vBulletin admins arsenal of essential hacks :)

Ya, unfortunately im not a master in REGEX, the compressing of the templates currently is not optimal in its design.

Since this is editing the actual parsed templates, one one regex needs to be written, not 2 like we are using now..

The problem lies within the JS tags, need to make one that removes whitespace AND tabs,newlines from every tag outside of <!-- // --> and <!-- -->, anything within those, retains its linebreaks and whitespace...

vulture 04-15-2005 03:52 PM

Quote:

Originally Posted by buro9
Very nice Trigunflame.

Negates the one I was working on for Zero Tolerence ;) (I'm stuck with a fried hard-drive so it's in limbo... so I really appreciate this being picked up by someone else :))

I'm actually going to install this myself... even though I wrote the compress hack :D


Can this be used alongside your hack?

Trigunflame 04-15-2005 03:53 PM

Quote:

Originally Posted by vulture
Can this be used alongside your hack?

There would be no point.

Trigunflame 04-15-2005 03:54 PM

Quote:

Originally Posted by buro9
Very nice Trigunflame.

Negates the one I was working on for Zero Tolerence ;) (I'm stuck with a fried hard-drive so it's in limbo... so I really appreciate this being picked up by someone else :))

I'm actually going to install this myself... even though I wrote the compress hack :D

Ya well as I posted above, the original REGEX I was using was not similiar to yours; however until I create one that does what I need i'll have to use it temporarily.

Corriewf 04-15-2005 06:52 PM

Isnt this adding a query?

Cyricx 04-15-2005 07:18 PM

It only runs the query when you compress the templates in the admincp. That step.

It doesn't add an additional query to any pages.

Corriewf 04-15-2005 07:34 PM

Does this work with other hacks that you know of?


All times are GMT. The time now is 03:31 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.01169 seconds
  • Memory Usage 1,738KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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