vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Board Optimization - Page Output Compression - Whitespace stripper. (https://vborg.vbsupport.ru/showthread.php?t=69787)

buro9 04-14-2005 08:46 AM

Quote:

Originally Posted by sross
So let me get this right. for the lite version I place in the includes file:



Questions.. does this alter all my files or is it only changing whats output? I mean if I open my files via ftp will they be all compressed?
-If something goes wrong can I back out of this by just removing the code? What happened to that guy above who tried to back out and is toast? I'd like to install this but am scared it will screw something up beyond repair? thanks!

To answer if that would give you the lite version... yes that would.

It compresses the output given to any web request... not your source files... so your files via FTP are untouched, this only strips whitespace from what is returned to a web request.

If you don't like this, then delete the lines you added.

Not sure which guy couldn't back out and is toast... there's just nothing that can really go wrong, it doesn't touch your source files, your templates, nothing.

The only scenario that might put you off is this: If your forum has people posting stuff within <pre> blocks (think the [code] bbcode) then where that depends on whitespace for formatting the whitespace is removed and formatting can be mucked up as a result.

So if you're a technical forum where people post chunks of HTML in code tags, then you might think that this hack is not for you.

However in all other cases this hack has no ill effect on your forum and does speed up rendering of the page on most browsers (I haven't viewed it in Opera, Safari or Lynx so I have no idea what it does for them, but IE and Firefox both seem to render faster with this hack in place), which is the point of it :)

buro9 04-14-2005 08:49 AM

Quote:

Originally Posted by Stryker[X]
Help! I installed it and got an error so I removed the code and now I get this on any page of the forums!

Parse error: parse error, unexpected $, expecting ',' or ';' in /homepages/15/d110888008/htdocs/thegamernation.com/forums/includes/functions.php on line 3734

Right, just seen this... I have no idea what you have done... but will place a fair guess that you deleted too much when you removed the code or left a stray character in place.

You only added the stuff between and including the // HACK lines right? And then you deleted just those lines to uninstall right? If so then that process cannot cause what you have posted alone... you must have either left a $ in place or deleted too much from your code.

Worst case scenario: download vb from the members part of vb.com and compare the original vb file with your one and restore the bit that you accidentally deleted or left in.

sross 04-14-2005 10:45 AM

I applied the lite version on one of my more busy forums 3.0.7 and WOWOWOWOW HUGE difference!, THANKS!!

wolfyman 04-15-2005 05:05 PM

The Wolfyman likes :D

Fallback 06-14-2005 08:04 PM

Can/should this hack be used WITH the "Compress Forum Templates & Phrases" hack?

Do the hacks conflict?

buro9 06-14-2005 08:21 PM

Quote:

Originally Posted by Fallback
Can/should this hack be used WITH the "Compress Forum Templates & Phrases" hack?

Do the hacks conflict?

They can work together quite fine... though you'd not gain much from doing so.

The hacks do not conflict.

I recommend Trigunflames hack as my hack will perform the whitespace stripping every page load, which attributes to server load. Trigunflames is a manual step, you click to compress your templates in your AdminCP... once done though, you don't need to do it again until the next time you edit a template.

Zia 01-12-2006 03:40 PM

Quote:

Originally Posted by buro9
Hehe... I just noticed you said 3.0.0. Well, the hack version does say 3.0.3 ;)

It works anyway... just place the hack BEFORE the $pageendtime variable is set :)

sounds nice...does it works for vb 3.5.3 ?

buro9 01-14-2006 08:32 PM

Quote:

Originally Posted by Zia
sounds nice...does it works for vb 3.5.3 ?

There's no need. An alternative method almost the same has already been produced:
https://vborg.vbsupport.ru/showthread.php?t=83248

But there is still the far superior one here that Trigunflame produced and that I helped with:
https://vborg.vbsupport.ru/showthread.php?t=79923

That one is easy to get working in 3.5.x (view the end of the thread), and is superior because it only compresses once, rather than on every page request.

dethfire 01-14-2006 08:39 PM

Quote:

Originally Posted by buro9
There's no need. An alternative method almost the same has already been produced:
https://vborg.vbsupport.ru/showthread.php?t=83248

But there is still the far superior one here that Trigunflame produced and that I helped with:
https://vborg.vbsupport.ru/showthread.php?t=79923

That one is easy to get working in 3.5.x (view the end of the thread), and is superior because it only compresses once, rather than on every page request.

anyway to make yours a plugin?

buro9 01-14-2006 08:43 PM

Quote:

Originally Posted by dethfire
anyway to make yours a plugin?

The first of the two links I gave above is precisely that.

The second could possibly be made a plugin, but it's really simple to install and instructions still valid... do you really need one?


All times are GMT. The time now is 03:02 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.01146 seconds
  • Memory Usage 1,744KB
  • 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
  • (7)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
  • (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