Version: 1.1.0, by ShiningArcanine
Developer Last Online: Nov 2023
Version: 3.5.0 Beta 1
Rating:
Released: 06-16-2005
Last Update: 06-16-2005
Installs: 274
Uses Plugins
No support by the author.
This is a port of Logican's Realtime Template Compressor hack from vBulletin 2.2.x to vBulletin 3.5.0 Beta 1. I wrote this by rewriting a version of the original hack, that I wrote for my forums when they ran 3.0.x, so that it would function as a plugin for 3.5.0.
I had originally sent this to Logican for him to release it but he replied granting me permission to release it; hence why I'm releasing this.
Installation is very simple. Just import the plugin via vBulletin's "Download / Upload Plugins" page in the Plugin System in the Admin Control Panel and you're done.
I'll try to correct any bugs that you might find. Let me know if you like this plugin and don't forget to click the install link if you install this.
Update History
Version 1.1.0: The expression was replaced with a more efficient one that increases the compression level from approximately 1-2% to approximately 4-8%.
Version 1.0.0: Initial Release
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
ok, well here is your solution to all the bugs. One problem is its in english and not php...
You need to parse out multiple white spaces + newlines in all of the code, you also need to remove html comments. HOWEVER you must ignore anything between <pre> <textarea> and <script> tags.
Ok well theres the brief... i'll see what i can do in a bit. (I think a good starting place would be to see how Vb3.5 handles bb tags especially the [nocode] tag or whatever it is that prevents bb code parsing between it.)
edit:
Well i've been messing arround for a bit and havn't got anywhere... The only 'hacked' solution i could come up with is to match the text area tags to a variable do the white space removal and put the text areas back in again.
when i get bored ill try my hand at making it conditional... but with my setup it appears immune to the issue unless i use the commented out line of code instead of what i actualy had enabled
[Output: 37.45 Kb. compressed to 36.00 Kb. by saving 1.45 Kb. (3.87%)]
be in the same color that the background?
I dont find the template o the code in the footer for this hack.
Thank u.
From what I can tell by reading the thread a few times (don't hold me to this) the compression, and that expression, are processed before the templates themselves.
Your best bet is to try editing the plugin itself.
From what I can tell by reading the thread a few times (don't hold me to this) the compression, and that expression, are processed before the templates themselves.
Your best bet is to try editing the plugin itself.
actualy... what he wants to change is processed after the page is completely made... so its after the templates