Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
[6.7] [beta] UBB Compression
#203303 07/02/2004 1:15 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
OP Offline
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:

Code
use lib("./Modules", ".");	# if there's no $0, or it's not sane...
ADD AFTER:

Code
eval { require Modules::Compress::cgi_buffer; } &CheckDollarAt([email protected]);
import Compress::cgi_buffer;
$cgi_buffer::generate_etag = 0;

1 member likes this: Gizmo
Sponsored Links
Re: [6.7] [beta] UBB Compression
#203304 07/02/2004 3:34 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
Offline
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
cool , thanks for updating it smile


- Allen wavey
- What Drives You?
Re: [6.7] [beta] UBB Compression
#203305 07/02/2004 4:20 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
OP Offline
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:
Code
use lib("./Modules", ".");	# if there's no $0, or it's not sane...
ADD AFTER:
Code
require Modules::Compress::cgi_buffer;
import Compress::cgi_buffer;
$cgi_buffer::generate_etag = 0;
Cut my shoutbox down from 27K to 3.4K

Re: [6.7] [beta] UBB Compression
#203306 07/02/2004 4:39 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
OP Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
Likes: 2
This also works well in the CP.

In cp.cgi

FIND:
Code
	($0 =~ m!(.*)(\|/)[^/\]+!) && unshift(@INC, $1, "$1$2Modules"); # our Modules directory
use lib("./Modules", "."); # jic $0 fails
ADD AFTER:
Code
	require Modules::Compress::cgi_buffer;
import Compress::cgi_buffer;
$cgi_buffer::generate_etag = 0;
Brought my General Settings page from 197KB to 17KB

Re: [6.7] [beta] UBB Compression
#203307 07/02/2004 5:59 PM
Joined: May 2001
Posts: 684
Code Monkey
Offline
Code Monkey
Joined: May 2001
Posts: 684
Great job Ian!!! thumbsup


Webmaster of d-talk & Kabel-Forum.com
Sponsored Links
Re: [6.7] [beta] UBB Compression
#203308 07/02/2004 7:07 PM
Joined: Jan 2003
Posts: 118
Member
Offline
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"
Re: [6.7] [beta] UBB Compression
#203309 07/02/2004 7:08 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
OP Offline
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

Re: [6.7] [beta] UBB Compression
#203310 07/02/2004 7:42 PM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
Now installed at DCTalkSolo.com

I was curious however; anything additional needed to patch ultimatebb.php?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: [6.7] [beta] UBB Compression
#203311 07/02/2004 7:54 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
OP Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
Likes: 2
no, it uses zlib by default

Re: [6.7] [beta] UBB Compression
#203312 07/02/2004 8:26 PM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
Good to know... Man, i've seen some large boards get a much needed kick from this already...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
Re: [6.7] [beta] UBB Compression
#203313 07/02/2004 11:39 PM
Joined: Jan 2003
Posts: 118
Member
Offline
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"
Re: [6.7] [beta] UBB Compression
#203314 07/03/2004 12:25 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
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)


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: [6.7] [beta] UBB Compression
#203315 07/03/2004 12:28 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
Edited ian's post to add additional requirement wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: [6.7] [beta] UBB Compression
#203316 07/03/2004 6:22 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
OP Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
Likes: 2
smile at least in this version I got it to tell you that instead of the old "**** you very much" ISE message tipsy

Re: [6.7] [beta] UBB Compression
#203317 07/03/2004 6:47 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Offline
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

Re: [6.7] [beta] UBB Compression
#203318 07/03/2004 6:49 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
OP Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
Likes: 2
Quote
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

Re: [6.7] [beta] UBB Compression
#203319 07/03/2004 7:21 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Offline
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 smirk

Re: [6.7] [beta] UBB Compression
#203320 07/03/2004 9:20 AM
Joined: Jan 2003
Posts: 118
Member
Offline
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"
Re: [6.7] [beta] UBB Compression
#203321 07/03/2004 9:41 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
OP Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
Likes: 2
I don't know how to install a module in Windows

Re: [6.7] [beta] UBB Compression
#203322 07/03/2004 11:19 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Offline
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394
Quote
quote:
cgi-binmodulesCompress
cgi-binmodulesDigest
cgi-binmodulesIO
this one.. but you need Compress::Zlib

Re: [6.7] [beta] UBB Compression
#203323 07/03/2004 3:09 PM
Joined: Jan 2003
Posts: 118
Member
Offline
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"
Re: [6.7] [beta] UBB Compression
#203324 07/03/2004 3:21 PM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Offline
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.)

Re: [6.7] [beta] UBB Compression
#203325 07/03/2004 3:40 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Offline
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.
Re: [6.7] [beta] UBB Compression
#203326 07/03/2004 3:42 PM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Offline
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 shocked

Re: [6.7] [beta] UBB Compression
#203327 07/03/2004 4:40 PM
Joined: Nov 2002
Posts: 188
Member
Offline
Member
Joined: Nov 2002
Posts: 188
Quote
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! eek

Re: [6.7] [beta] UBB Compression
#203328 07/03/2004 6:24 PM
Joined: Jan 2003
Posts: 118
Member
Offline
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"
Re: [6.7] [beta] UBB Compression
#203329 07/03/2004 7:23 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
OP Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
Likes: 2

Re: [6.7] [beta] UBB Compression
#203330 07/04/2004 1:32 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
Quote
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]


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Re: [6.7] [beta] UBB Compression
#203331 07/07/2004 2:12 PM
Joined: Mar 2001
Posts: 80
Member
Offline
Member
Joined: Mar 2001
Posts: 80
Code
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

Re: [6.7] [beta] UBB Compression
#203332 07/07/2004 2:26 PM
Joined: Mar 2001
Posts: 80
Member
Offline
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

Re: [6.7] [beta] UBB Compression
#203333 07/07/2004 2:41 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
OP Offline
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

Re: [6.7] [beta] UBB Compression
#203334 07/07/2004 8:50 PM
Joined: Mar 2001
Posts: 80
Member
Offline
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

Re: [6.7] [beta] UBB Compression
#203335 07/07/2004 9:57 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
OP Offline
Master Hacker
Joined: Jan 2003
Posts: 3,456
Likes: 2
6.71K is awesome. Most decent size boards are 80+

Re: [6.7] [beta] UBB Compression
#203336 07/08/2004 9:26 AM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
Offline
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.


- Allen wavey
- What Drives You?
Re: [6.7] [beta] UBB Compression
#203337 07/08/2004 9:49 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
OP Offline
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

Re: [6.7] [beta] UBB Compression
#203338 07/08/2004 1:20 PM
Joined: Mar 2001
Posts: 80
Member
Offline
Member
Joined: Mar 2001
Posts: 80
I guess we can asume its working then.

Thanks fellas.

Re: [6.7] [beta] UBB Compression
#203339 07/19/2004 10:40 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Offline
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. smile

Great job to all those involved! thumbsup

Re: [6.7] [beta] UBB Compression
#203340 08/14/2004 7:34 PM
Joined: Jan 2003
Posts: 118
Member
Offline
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"
Re: [6.7] [beta] UBB Compression
#203341 09/08/2004 7:42 PM
Joined: Jan 2003
Posts: 118
Member
Offline
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"
Re: [6.7] [beta] UBB Compression
#203342 09/08/2004 8:31 PM
Joined: Jan 2003
Posts: 118
Member
Offline
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"
Page 1 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,543
Posts293,776
Members13,837
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 328
Topics Created 0
Posts Made 0
Users Online 2
Birthdays 5
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,805
Greg Hard 4,625
Top Posters(30 Days)
isaac 2
Top Likes Received
isaac 39
Gizmo 10
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.5
(Snapshot build 20200802.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.111s Queries: 96 (0.050s) Memory: 3.6464 MB (Peak: 4.0913 MB) Data Comp: Zlib Server Time: 2020-08-06 00:41:21 UTC
Valid HTML 5 and Valid CSS