Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Page Output Compression - Whitespace stripper. Details »»
Page Output Compression - Whitespace stripper.
Version: 1.00, by buro9 buro9 is offline
Developer Last Online: Jul 2012 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.0.6 Rating:
Released: 09-22-2004 Last Update: Never Installs: 70
 
No support by the author.

No longer supported by the author.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 04-14-2005, 08:46 AM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #103  
Old 04-14-2005, 08:49 AM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #104  
Old 04-14-2005, 10:45 AM
sross sross is offline
 
Join Date: Mar 2004
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I applied the lite version on one of my more busy forums 3.0.7 and WOWOWOWOW HUGE difference!, THANKS!!
Reply With Quote
  #105  
Old 04-15-2005, 05:05 PM
wolfyman's Avatar
wolfyman wolfyman is offline
 
Join Date: Apr 2005
Posts: 719
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The Wolfyman likes
Reply With Quote
  #106  
Old 06-14-2005, 08:04 PM
Fallback Fallback is offline
 
Join Date: May 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Do the hacks conflict?
Reply With Quote
  #107  
Old 06-14-2005, 08:21 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #108  
Old 01-12-2006, 03:40 PM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #109  
Old 01-14-2006, 08:32 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #110  
Old 01-14-2006, 08:39 PM
dethfire dethfire is offline
 
Join Date: Feb 2003
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #111  
Old 01-14-2006, 08:43 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:31 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.08352 seconds
  • Memory Usage 2,303KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete