The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Page Output Compression - Whitespace stripper. Details »» | |||||||||||||||||||||||||||
Page Output Compression - Whitespace stripper.
Developer Last Online: Jul 2012
No longer supported by the author.
Show Your Support
|
Comments |
#92
|
|||
|
|||
Installed and seems to be working nicely on a "patched" 3.0.6
|
#93
|
|||
|
|||
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 |
#94
|
|||
|
|||
Very nice boost in speed on all pages
thank you |
#95
|
|||
|
|||
Is this fixed in 3.0.7?
|
#96
|
||||
|
||||
Quote:
If that is not what you are asking, can you please clarify what you are referring to please. Thanks, jd |
#97
|
||||
|
||||
Installed this hack with no modification at all.
Just add this to your phpinclude_end template: PHP Code:
|
#98
|
||||
|
||||
To save execution time, wouldn't it be better to do this upon "saving" a template to the database? That way it has already been stripped, and it doesn't need to be done upon page load, i know it won't make much of a performance difference, but if i page uses a LOT of HTML and a LOT of templates combined, it might take longer to load by a little bit.
Also seen as how vBulletin saves the template to the database in 2 forms, you just strip the whitespaces and such for the actual template shown on the site, while the default remains the same for when you edit it via the ACP? Nice addition none the less, just thought that implementation could make it better - Zero Tolerance |
#99
|
|||
|
|||
Interesting.
Where's the second stored instance? The datastore stores styles but not templates. The template table has too columns that look good contenders... is the first 'template' the one I should modify? Hmmm... I should also do bbcodeparse too shouldn't I, to get the content. Certainly possible, but not as simple to install and support as this one Which is a large part of how I now like to write stuff |
#100
|
||||
|
||||
In the table "template", there are 2 fields, one is: "template", and the other is "template_un". The first one is the one displayed on the forums, and already parsed (phrase tags, if conditionals, etc..), and the second one is the one un-parsed, for when editing via the ACP (it meant that vB didn't have to waste execution time to unparse the template upon editing/search/find & replace). My idea was that you modified the ACP style control file, so after saving a template, the data that gets saved to "template" has white spaces stripped.
- Zero Tolerance |
#101
|
|||
|
|||
So let me get this right. for the lite version I place in the includes file:
Quote:
-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! |
#102
|
|||
|
|||
Quote:
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 |
#103
|
|||
|
|||
Quote:
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. |
#104
|
|||
|
|||
I applied the lite version on one of my more busy forums 3.0.7 and WOWOWOWOW HUGE difference!, THANKS!!
|
#105
|
||||
|
||||
The Wolfyman likes
|
#106
|
|||
|
|||
Can/should this hack be used WITH the "Compress Forum Templates & Phrases" hack?
Do the hacks conflict? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|