|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Modification Name: UBB Compression Author(s): Ian Spence, AllenAyres Demo: http://www.alforadmin.com Requirements: UBB.classic 6.x, Compress::Zlib Download Link: https://www.ubbdev.com/ubb/upload/00020028/Compress.zip Credits: Allen for the original code * Copy the ZIP's contents into the Modules folder. # If installing on 6.0 <-> 6.6, uncomment "use strict;" # This is already uncommented in 6.7+ Find: use lib("./Modules", "."); # if there's no $0, or it's not sane... ADD AFTER: eval { require Modules::Compress::cgi_buffer; } &CheckDollarAt($@); import Compress::cgi_buffer; $cgi_buffer::generate_etag = 0;
|
1 member likes this:
Gizmo |
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
 , thanks for updating it 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Just an FYI, if this works for your forums, and you have the shoutbox installed, do the following. In ubb_shoutbox.cgi Find: use lib("./Modules", "."); # if there's no $0, or it's not sane... ADD AFTER: require Modules::Compress::cgi_buffer; import Compress::cgi_buffer; $cgi_buffer::generate_etag = 0; Cut my shoutbox down from 27K to 3.4K
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
This also works well in the CP. In cp.cgi FIND: ($0 =~ m!(.*)(\|/)[^/\]+!) && unshift(@INC, $1, "$1$2Modules"); # our Modules directory use lib("./Modules", "."); # jic $0 fails ADD AFTER: require Modules::Compress::cgi_buffer; import Compress::cgi_buffer; $cgi_buffer::generate_etag = 0; Brought my General Settings page from 197KB to 17KB
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
Great job Ian!!! 
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
Uhh.. where do I put these folders and files? Do I make any edits besides in cp.cgi and shoutbox.cgi?
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
they all go into the Modules folder
ie, Modules/Compress/cgi_buffer.pm
You edit ultimatebb.cgi, the other 2 are optional
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
Now installed at DCTalkSolo.com
I was curious however; anything additional needed to patch ultimatebb.php?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
no, it uses zlib by default
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
Good to know... Man, i've seen some large boards get a much needed kick from this already...
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
OK, I got this error:
There was a compilation error while loading the UBB.classic libraries and data files:
Can't locate Modules/Compress/cgi_buffer.pm in @INC (@INC contains: ./Modules . c:inetpubwwwrootcgi-bin c:inetpubwwwrootcgi-binModules C:/Perl/lib C:/Perl/site/lib) at c:inetpubwwwrootcgi-binultimatebb.cgi line 60.
Please make sure that you uploaded the CGI and Variables files to the proper directory, permissions are set properly on the files, and that paths in the control panel are set correctly.
I checked the permissions and they are the same as all the other directories really. I think I gave them all everything but full control. Paths are obviously set correctly... What did I mess up?
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
It means you don't have zlib compression installed on the system; which is required to run this mod (I'm suprised it's not in the requirements)
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
Edited ian's post to add additional requirement 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
 at least in this version I got it to tell you that instead of the old "**** you very much" ISE message 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Actually I don't think you need it, you just need to copy anything inside the ZIP file into the Modules folder. Then you'll have Modules/Compress/cgi_buffer.pm
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Originally posted by LK:
Actually I don't think you need it, you just need to copy anything inside the ZIP file into the Modules folder. Then you'll have Modules/Compress/cgi_buffer.pm
You need it. Zip updated
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Follow-up: you don't need to have Compress::cgi_buffer in your Perl installation, you just need to upload it to your Modules folder; though you do need Compress::Zlib 
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
OK, so just to be clear, the paths should be something similar to below?
cgi-binmodulesCompress cgi-binmodulesDigest cgi-binmodulesIO
And just copy the files from the zip into the all ready existing Digest and IO directories?
Or
cgi-binmodulesCompress cgi-binmodulesCompressDigest cgi-binmodulesCompressIO
Which was how the orginal zip was structured.
I went to the zlib website to get this application but all I found that appeared to be useful was a single DLL file? Do I just need that? And copy it to the modules folder?
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I don't know how to install a module in Windows
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
quote: cgi-binmodulesCompress cgi-binmodulesDigest cgi-binmodulesIO this one.. but you need Compress::Zlib
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
OK... Can someone link me to that please? I tried searching for Compress::Zlib and Zlib on Google but the results are less than helpful, or perhaps I don't know what I'm looking at (probably the later). Thanks in advance...
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
You have to ask your webhosting provider to install Compress::Zlib (it's a very complicated process, unlike UBB's other modules.) If you are your own host go to http://search.cpan.org and look it up (that is the best search engine for Perl modules.)
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
I fail to see how:
Unix: perl -MCPAN -e install Compress::Zlib
Windows: ppm install Compress::Zlib
is complicated.
(Unless, of course, your host has a large long approval procedure for running such commands...)
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Oh, once I tried to install a module and it was much more complicated, so I thought it's the same here 
|
|
|
|
Joined: Nov 2002
Posts: 188
Member
|
Member
Joined: Nov 2002
Posts: 188 |
Originally posted by Charles Capps:
I fail to see how:
Unix: perl -MCPAN -e install Compress::Zlib
Windows: ppm install Compress::Zlib
is complicated.
(Unless, of course, your host has a large long approval procedure for running such commands...)
Sure, that's easy for YOU to say... When people such as yourself cut your fingers, binary bits flow out instead of blood! 
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
I am my own host so no problems there. I went out to the suggested website and found this link:
http://search.cpan.org/~pmqs/Compress-Zlib-1.33/Zlib.pm
Now what do I do with it? I don't see any files? Is Zlib.pm the file? How do I install it?
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
Originally posted by Charles Capps:
I fail to see how: Unix: perl -MCPAN -e install Compress::Zlib Windows: ppm install Compress::Zlib is complicated. (Unless, of course, your host has a large long approval procedure for running such commands...)
Take it up a notch; Ensim install: quote: [qb]Install Compress::Zlib ====================== perl -MCPAN -e shell install Compress::Zlib exit
Deploy Serverwide: ================== set_pre_maintenance set_maintenance set_post_maintenance service webppliance restart[/qb]
|
|
|
|
Joined: Mar 2001
Posts: 80
Member
|
Member
Joined: Mar 2001
Posts: 80 |
Digest::MD5 object version 2.09 does not match bootstrap parameter 2.16 at /usr/lib/perl5/5.6.0/i386-linux/DynaLoader.pm line 219. Any idea whats causing this?, can i put back the original? Thanks
|
|
|
|
Joined: Mar 2001
Posts: 80
Member
|
Member
Joined: Mar 2001
Posts: 80 |
I replaced the md5 that came with this mod with the original from 6.7.1 and the errors went away.
Is there anyway to tell if its working or have i screwed it :s
Thanks
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
in Firefox, go to your forum summary, make sure that the page's url ends in cgi.
Now, view page info and see how large the page is.
If you only have IE, link me to the page and I can tell you
|
|
|
|
Joined: Mar 2001
Posts: 80
Member
|
Member
Joined: Mar 2001
Posts: 80 |
Thanks Ian In Firefox it reports the forum sumary as 6.71k I think that is small but i never checked it before - i guess i could uninstall it and check. Here is the link http://forum.xbox365.net/ubb/ultimatebb.cgi
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
6.71K is awesome. Most decent size boards are 80+
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
I'm seeing 65kb (66009 bytes) in IE and 6.7kb in firefox on the xbox site.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Firefox shows it correctly. IE shows the size of the file it cached, not the file it downloaded
|
|
|
|
Joined: Mar 2001
Posts: 80
Member
|
Member
Joined: Mar 2001
Posts: 80 |
I guess we can asume its working then.
Thanks fellas.
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
I have applied this to all my applications on the Alltel intranet. It chopped a 124k page to 13.2k. I know all here who deal with large pages/apps, taxing the server at every turn, any letup is greatly appreciated. Great job to all those involved! 
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
Hmm... Would this precompiled .dll work? I'm still not quite sure what to do with it, but it looks like I might be getting closer? http://www.winimage.com/zLibDll/
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
OK... I finally figured this out. Compression up and running. Rock on.
Are there any other pages I need to edit besides ultimatebb.cgi, ubb_shoutbox.cgi, and cp.cgi?
'Er, I thought I had it figured out... Now I get this:
'c:inetpubwwwrootcgi-binultimatebb.cgi' script produced no output
This error now seems to be occurring on all cgi pages and the second on php pages.
Status on main page also seems to be fubar'd.
Getting these error messages in IE when going to php pages:
When going to main page I get this error:
Line: 2 Char: 32 Error: Expected hexidecimal digit Code: 0 URL: Provided
Help pretty please?
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
|
Joined: Jan 2003
Posts: 118
Member
|
Member
Joined: Jan 2003
Posts: 118 |
Hmph... Interestingly enough I changed my mapping of Perl from Perlis.dll to Perl.exe and things seem to be working again. Very strange.
-GATOR
"Pain is temporary, Pride is forever"
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|