php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#57270 - 02/14/04 05:02 AM UBB File Compression
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
What about a hack like UBB-File Compression for 6.7....

http://www.ubbdev.com/ubb/ultimatebb.php/topic/20/633.html
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#57271 - 02/14/04 12:06 PM Re: UBB File Compression
Charles Capps Offline
Admin Emeritus
Resident Code Hacker

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
That hack should work perfecetly in any 6-series version...
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#57272 - 02/14/04 12:31 PM Re: UBB File Compression
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
Hi Charles C.,

it does not work at my testboard...

http://www.ubb-test67.board-world.net/cgi-bin/ultimatebb.cgi
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#57273 - 02/14/04 01:47 PM Re: UBB File Compression
Charles Capps Offline
Admin Emeritus
Resident Code Hacker

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
Mmmm. I wonder why it wants MD5.pm rather than Digest::MD5...
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#57274 - 02/14/04 03:27 PM Re: UBB File Compression
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
If this was working, would it work with ultimatebb.php also?

Would it be considered an alternative for those who can't enable ultimatebb.php?
_________________________
Code monkey like Fritos

Top
#57275 - 02/14/04 03:34 PM Re: UBB File Compression
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
I think ultimatebb.php already uses zlib if available.
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#57276 - 02/14/04 03:41 PM Re: UBB File Compression
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
Last time the hack worked for me was with 6.4
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#57277 - 02/14/04 05:28 PM Re: UBB File Compression
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
The guy who wrote the module hasn't updated it in 3 years or so smile I was looking to see if he updated it just this past week smile
_________________________
- Allen wavey
- What Drives You?

Top
#57278 - 03/22/04 09:24 AM Re: UBB File Compression
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
Hi,

can nobody help me, to get this hack working again?
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#57279 - 05/05/04 08:12 PM Re: UBB File Compression
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Interesting note...

This worked for me perfectly on my first try.

File size of summary went from 65KB to 10KB
_________________________
Code monkey like Fritos

Top
#57280 - 05/05/04 10:30 PM Re: UBB File Compression
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
It worked, but was hit and miss for the most part. Would toss errors for no apparent reason.
_________________________
- Allen wavey
- What Drives You?

Top
#57281 - 05/05/04 10:31 PM Re: UBB File Compression
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
what kind of errors?
_________________________
Code monkey like Fritos

Top
#57282 - 05/05/04 10:49 PM Re: UBB File Compression
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5131
Loc: Portland, OR, USA
I wonder if theil be the same as UGN's...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#57283 - 05/06/04 12:06 AM Re: UBB File Compression
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
Quote:
Originally posted by Ian Spence:

what kind of errors?


Don't remember, maybe 500ISE's or something similar, it's been years since we tried this. smile
_________________________
- Allen wavey
- What Drives You?

Top
#57284 - 05/06/04 12:07 AM Re: UBB File Compression
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
I had written the guy to see if he planned to update the .pm, but never heard back from him.
_________________________
- Allen wavey
- What Drives You?

Top
#57285 - 05/06/04 12:13 AM Re: UBB File Compression
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
hmmm... it uses md5, IO::String, and Compress::Zlib - possibly the errors back then were due to these modules, which have all been updated since. Maybe the errors are gone smile
_________________________
- Allen wavey
- What Drives You?

Top
#57286 - 05/06/04 12:54 AM Re: UBB File Compression
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
and ubb is now running strict, more or less, so that could have fixed it as well (since part of the instructions were to uncomment the 'use strict' line).
_________________________
- Allen wavey
- What Drives You?

Top
#57287 - 05/10/04 11:44 AM Re: UBB File Compression
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
Hi Allen,

is it possible the modify the hack?
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#57288 - 05/10/04 12:01 PM Re: UBB File Compression
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Quote:
Originally posted by d-talk:

Hi Allen,

is it possible the modify the hack?



no modification needs to be done. if it doesn't work for you, then most likely you're missing some modules.


One thing I did was reupload my 6.7 modules after I uploaded the included ones so that newer modules were there instead of the old ones from 6.x
_________________________
Code monkey like Fritos

Top
#57289 - 05/10/04 01:41 PM Re: UBB File Compression
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 685
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#57290 - 05/10/04 08:33 PM Re: UBB File Compression
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I'm fully aware it doesn't work for you, as you started the topic saying so
_________________________
Code monkey like Fritos

Top
#57291 - 05/10/04 10:16 PM Re: UBB File Compression
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5131
Loc: Portland, OR, USA
Ian, I have all the required modules installed and it doesn't work for me wink ...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#57292 - 05/10/04 10:50 PM Re: UBB File Compression
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I will work on this, however, I will require ftp to a server that it doesn't already work on. My installation works, so I can't test it there
_________________________
Code monkey like Fritos

Top
#57293 - 05/10/04 11:45 PM Re: UBB File Compression
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5131
Loc: Portland, OR, USA
Lol you have my FTP :x... Use it, I don't care, just don't break anything...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#57294 - 06/26/04 02:13 PM Re: UBB File Compression
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Here is how I got this to work, might/might not work for you.

First, make sure you have Compress::Zlib installed on your server.

Then, in cgi_buffer.pm, find and remove use MD5;

Add:

Code:
	do "Digest/MD5.pm";
	if (!$Digest::MD5::VERSION) {
		require Digest::Perl::MD5;
		import Digest::Perl::MD5 'md5_hex';
	} else {
		import Digest::MD5 'md5_hex';
	} # end if
After:
Code:
BEGIN {
OK, now do that instructions as they say.

Once you've uploaded the modified files, reupload the Modules that came with your 6.7 zip, ensuring files are as up to date as possible.
_________________________
Code monkey like Fritos

Top
#57295 - 07/01/04 04:23 PM Re: UBB File Compression
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
nice work on this Ian smile Did you update the topic in the mod forum?
_________________________
- Allen wavey
- What Drives You?

Top
#57296 - 07/01/04 04:35 PM Re: UBB File Compression
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
should I start a new thread as this workaround probably only works 6.4-6.7?
_________________________
Code monkey like Fritos

Top
#57297 - 07/01/04 05:30 PM Re: UBB File Compression
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
I'd think so smile I may try it myself, it was a good mod smile
_________________________
- Allen wavey
- What Drives You?

Top
#57298 - 07/01/04 06:48 PM Re: UBB File Compression
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5131
Loc: Portland, OR, USA
I say make a new topic.
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#57299 - 08/06/04 02:53 PM Re: UBB File Compression
JB007 Offline
Member

Registered: 03/14/00
Posts: 213
Loc: Kuwait ( q8 )
Hi,

I have made a new package based on cgi_buffer and the latest version of IO::String along with an installation manual. Maybe it will be useful:

http://www.geocities.com/q8_bond/download_ubbcompress.html

Note: Digest::MD5 is needed in cgi_buffer only to generate ETags, so I modified the module to load and use Digest::MD5 only when necessary.
_________________________

Top
#57300 - 08/06/04 05:14 PM Re: UBB File Compression
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25448
Loc: Texas
cool
_________________________
- Allen wavey
- What Drives You?

Top
Page 1 of 2 1 2 >


Moderator:  Gizmo