vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   RealTime Template Compressor: Reduces page sizes, loads pages faster, saves Bandwidth (https://vborg.vbsupport.ru/showthread.php?t=56589)

Princeton 12-31-2003 03:01 PM

In vB3, you have more control of Search and Replace.
It's only a headache if you don't know how to use it properly. (It takes some time to get use to it.)

In vB3, you'll find that it has a lot of javascript/comments and "empty" space (found in rendered html source) caused by conditionals. Remove all these space/lines/comments and your site will load quicker and save on bandwidth.

- every little bit counts

EricGT 02-28-2004 10:10 PM

Quote:

Originally Posted by Crinos
There are a lot more "spacing" issues then the ones mentioned above ... the "down arrow" button marking new posts also loses its spacing in forumdisplay ... the postbit buttons all become cramped together in some areas ... forum text links separated by white space all get smashed together, etc ...

I am giving this hack a chance, I really am, by hunting all templates in my test forum that contain visible white space and grumpily replacing them with   ... just incorporating the hack isn't enough if you like your page to not look amateurish with all the lost white space...

Even the slightest misalignment makes me cringe, what more for squished links :D

It seems to me that there is a pretty simple way to deal with this spacing issue. In the preg_replace statement, instead of eliminating all white-space characters between html tags, replace all white-space characters between html tags with one space. The addition to the file size would be minimal and this would deal with the spacing problem. This is what I did on my site and it is working great.

Thanks for a very helpful hack. My site is using 80 - 90% of two T-1's and a 5% or 6% reduction is bandwidth is meaningful. Eric

Bulent Tekcan 03-07-2004 09:40 AM

Sorry

Is it available VB3 RC4 ?

Thanks

Logician 03-07-2004 10:25 AM

Quote:

Originally Posted by turkeyforum
Is it available VB3 RC4 ?

I don't use VB3 so not yet.. But will be..

Rampag33 04-20-2004 11:30 PM

How do you implement this in VB3 gold?

jthorpe 12-02-2004 10:38 AM

Welp, this screwed up my board a good bit so I removed it, and now many of my templates have added spaces when they didn't before. So now I have to spend a number of hours going back to fix them. On top of that, my CMPS templates have screwed up colors in IE now. Since I'm running Gzip, I don't see the benefit. I guess I should have realized that before installing this hack.

Logician 12-02-2004 07:00 PM

Quote:

Originally Posted by jthorpe
Welp, this screwed up my board a good bit so I removed it, and now many of my templates have added spaces when they didn't before. So now I have to spend a number of hours going back to fix them. On top of that, my CMPS templates have screwed up colors in IE now. Since I'm running Gzip, I don't see the benefit. I guess I should have realized that before installing this hack.

The version I released in the first post of this thread can not cause such effects if you managed to install it successfully. For starters its compression is in "real time" (ie on the fly) so no templates are actually changed. Hence it is impossible that templates have added spaces even after the removal of the hack.

jthorpe 12-02-2004 07:20 PM

hmmm, interesting. It wasn't happening before the hack, and everything is still screwed up after removing it. I haven't missed anything on the install or removal so I know the hack is completely gone, yet some of my formatting is still messed up. It has obviously done SOMETHING to my forum. Whatever that is yet, I have yet to discover. I'm not sure if mmcache could be having an issue or not but when I put the hack back, the stuff that's screwed up now goes back to normal, and of course I lose spaces all over the place on the other stuff. Don't know what to tell ya, but the hack did cause this problem.

alqadir 12-18-2004 09:34 AM

This question might not belong here, so if it does not please remove it.
Let's say I wanted to remove empty excessive white space. So in the code if you see <br /> <br /> <br /> (ie <br /> three times in a row) how would you remove it so that you can have a max of two in a row.

I need this because, everytime the editor edits an html marked up post, at the end of each line it adds <br /> making the post huge if edited a few times


All times are GMT. The time now is 11: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.03463 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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