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.
The solution to the paragraph bug is to alter the regular expression in such a way that newline characters appearing between textarea tags are left untouched.
The solution to the paragraph bug is to alter the regular expression in such a way that newline characters appearing between textarea tags are left untouched.
I leave this as an exercise for the reader
Quote:
Originally Posted by Submerge
Not all of us are php experts
That's coder-speak for "I don't know how to do it".
Even if the mod is bugged, IMHO it's still worth running on bigger forums if bandwidth is a concern.
these are the results of my experiments with the code... this one doesnt break anything and ill see if i can figure out a way to make it not bust javascript
PHP Code:
//Logician Hack:
//$page_byte=strlen($output);
//this broke scripts on my setup, if you want to test, click on 'more' smileys in advanced editor or try to bring up the user popup when you click on there name on a thread
//$output=preg_replace ('/(\s*)\r\n(\s*)/', "", $output);
//this broke scripts on my setup, if you want to test, click on 'more' smileys in advanced editor or try to bring up the user popup when you click on there name on a thread
I'm running that code, only the advanced editor bug. (It strips line breaks if you edit a post in advanced mode). Other than that, no problems whatsoever.
Riuji, unless you see a difference between my code and yours (I don't).
I'm running that code, only the advanced editor bug. (It strips line breaks if you edit a post in advanced mode). Other than that, no problems whatsoever.
Riuji, unless you see a difference between my code and yours (I don't).