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)

Erwin 09-01-2003 05:54 AM

Logician, I have to say it again - this is such a great idea! :) Absolutely minimal server overhead for a huge bandwidth saving! :) I use And such a simple concept, easily implemented, yet no one else thought of it. Pure genius.

Logician 09-01-2003 06:52 AM

Quote:

Today at 09:54 AM Erwin said this in Post #41
Logician, I have to say it again - this is such a great idea! :) Absolutely minimal server overhead for a huge bandwidth saving! :) I use And such a simple concept, easily implemented, yet no one else thought of it. Pure genius.
Thank you pal.. Great you liked it! :)

KuraFire 09-01-2003 09:42 AM

Quote:

08-30-03 at 10:40 AM Logician said this in Post #23
If you are using WebTemplates to manage your "normal pages", the answer is YES. Otherwise no.. :)

Actually, this will just work for EVERY page that you output using vBulletin's doooutput function. That doesn't limit one to Webtemplates at all, most of my entire site is done using vB's dooutput function (and all of KFN 6 will be done using vB3's print_output() function), and as such this hack will apply to all those pages. :)

works fine in vB3 as well btw, I just placed the code (with tiny changes) in vB3's print_output function in the proper place, works like a charm. Dunno yet if I'm gonna keep it though, unformatted source code might be 'more difficult for people to rip', but usually people don't rip sourcecode, they learn from sourcecode. Lack of proper indenting also looks unprofessional...

Erwin 09-01-2003 10:44 AM

One side effect - this hack does remove spaces in between images in the output as well. No big deal, but the buttons in the postbit are cramped next to each other. :)

Logician 09-01-2003 11:17 AM

Quote:

Today at 02:44 PM Erwin said this in Post #44
One side effect - this hack does remove spaces in between images in the output as well. No big deal, but the buttons in the postbit are cramped next to each other. :)
As a matter of fact all these minor side effects can be cured by using
PHP Code:

&nbsp

instead of spaces in the affected templates. ;) It is a better syntax as far as HTML is concerned too.

Quote:

Actually, this will just work for EVERY page that you output using vBulletin's doooutput function. That doesn't limit one to Webtemplates at all, most of my entire site is done using vB's dooutput function (and all of KFN 6 will be done using vB3's print_output() function), and as such this hack will apply to all those pages.
That is right. The hack applies to all VB pages so if your regular pages are vb integrated too, you'll have the compression in them as well. But the question was whether the hack can be applied to regular (non-vb integrated) pages or not and the answer is no unless user uses a vb-integrated solution such as webtemplates. :)

lasto 09-01-2003 12:37 PM

i noticed the buttons where all together and thought it was me

ok will fix with command above cheers

StrykerContact 09-02-2003 04:54 AM

This is great, I use to use this sort of thing to compress my html pages.

Kriek 09-02-2003 11:25 AM

Excellent, though there seemed to be thousands of instances spanning thirteen styles/skins where I would need to replace relevant spaces with & nbsp;. So I decided to replay the backup functions file.

Sebastian 09-02-2003 09:44 PM

Logician, this is a great hack. However, i will not use it because i am too picky and html must look readable :p

i know there are many people that like to view the page source, i myself do.

its just a habit by most coders to look at the page source.

you also have to note that 1byte is extremely small, 1,000 bytes is just about 1KB.

there really isn't much you'll be saving, as even a user on 56k would probably not even noticed a difference in 5,000 bytes.

you might save a dollar or two by doing this, but a lot of page source viewers are gonna be like "what a crappy coder"

lol ;):p

seriously though, good thought.
i am trying to focus my time in reducing vbulletin queries. that is what kills me.

Erwin 09-03-2003 06:30 AM

Quote:

09-01-03 at 10:17 PM Logician said this in Post #45
As a matter of fact all these minor side effects can be cured by using
PHP Code:

&nbsp

instead of spaces in the affected templates. ;) It is a better syntax as far as HTML is concerned too.

True, except
PHP Code:

&nbsp

creates a wider space than a normal HTML whitespace. :) However, I still love your hack. 5% savings is equal to many many gigabytes for me per year.


All times are GMT. The time now is 04:12 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.01226 seconds
  • Memory Usage 1,746KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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