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)

kall 04-19-2005 10:25 PM

Quote:

Originally Posted by Trigunflame
ya, hopefully *no more development*

far as im concerned, it's done.

I *does* continually screw over certain templates still..I have to save my forumhome_loggedinusers template each time I accidentally compress templates, otherwise it parses stuff a bit bodgily.

Trigunflame 04-20-2005 12:21 AM

Quote:

Originally Posted by kall
I *does* continually screw over certain templates still..I have to save my forumhome_loggedinusers template each time I accidentally compress templates, otherwise it parses stuff a bit bodgily.

The bad templates array exist for a reason, add the offending templates to the array and it will skip them.

msimplay 04-20-2005 06:08 AM

Quote:

Originally Posted by Trigunflame
The bad templates array exist for a reason, add the offending templates to the array and it will skip them.

would be good if a list of bad templates could be added here

The Realist 04-20-2005 09:06 AM

What I've noticed on my forums is all my avatars and picture attachments have gone a bit hay wire.

I now have to re-upload them as they are all buggered :)

Laters

MentaL 04-20-2005 10:48 AM

Worth using on ragezone.com or will i get just tons of errors?

Trigunflame 04-20-2005 12:15 PM

Quote:

Originally Posted by mentalrz
Worth using on ragezone.com or will i get just tons of errors?

It is all reversible, the above person unfortunately has no idea what he is talking about; as this mod "only" modifies templates; and has no effects on attachments or avatars.

Blam Forumz 04-21-2005 03:08 PM

Quote:

Originally Posted by mentalrz
Worth using on ragezone.com or will i get just tons of errors?

its worth it. definately

MentaL 04-21-2005 03:22 PM

Installed.........


And DAMN.. its 3 times faster ^__^

http://forum.ragezone.com

lazytown 04-26-2005 07:49 PM

First, Thank you for this hack. I think the idea is great.

However, I am having a minor problem. Some items (like in vbGarage 4.1.0) are not appearing the same as they did before. For example, a series of thumnbail photos used to wrap, and with the templates compressed they no longer wrap, which causes the user to have to horizontally scroll their browser.

I looked at the html before and after compression, and it appears that there was originally a series of spaces in between each <img> tag. With the spaces removed, IE will not allow them to wrap to the next line. Can the program just remove spaces after the first one? That way it is still compressing but not removing possibly necessary spaces.

Thanks
-V

Trigunflame 04-26-2005 08:45 PM

Quote:

Originally Posted by vissa
First, Thank you for this hack. I think the idea is great.

However, I am having a minor problem. Some items (like in vbGarage 4.1.0) are not appearing the same as they did before. For example, a series of thumnbail photos used to wrap, and with the templates compressed they no longer wrap, which causes the user to have to horizontally scroll their browser.

I looked at the html before and after compression, and it appears that there was originally a series of spaces in between each <img> tag. With the spaces removed, IE will not allow them to wrap to the next line. Can the program just remove spaces after the first one? That way it is still compressing but not removing possibly necessary spaces.

Thanks
-V

Change

PHP Code:

$search  = array('/\s+/''/\t+/'); 

To

PHP Code:

$search  = array('/\s\s+/''/\t+/'); 

Does it work now?


All times are GMT. The time now is 08:23 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.01371 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_php_printable
  • (6)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