UBB.Dev
Posted By: AllenAyres [6.7] [beta] ubb.db v3 - 01/04/2004 12:47 AM
Modification Name: ubb.db v3

Author(s): AllenAyres

Description: Adds a plug-n-play file database to your site with ubb authentication.

Demo: https://www.ubbdev.com/ubbcgi/db.cgi

Requirements: ubb.classicâ„¢ 6.7

Download Link: https://www.ubbdev.com/ubb/upload/00000494/ubbdb67.zip

Credits: Cal (thank you for permission to distribute laugh )

Credits and Thank yous:
- LK for the majority of the grunt work updating from the v5 series it was written for and adding additional admin features thumbsup
- Mark Badolato for code optimization and putting up with my questions smile
- Charles Capps for code assistance smile
- Burak for code assistance smile
- Clankiller and Wierd Al for bugfixes smile

Install Notes:
- Unzip the file and upload the cgi-bin contents to your ubb cgi directory in ascii, setting permissions to 755. Upload the /uploads folder to your ubb non-cgi directory and set permissions to 777.
- Access your admin at db.cgi?action=admin there are some 'starter' categories in there you can edit.
- A method was added to make using additional file types easir to upload. Line # 282:

Code
my ($base, $path, $ext) = fileparse($zip, qr{.(zip|txt|jpg)});
Change the (zip|txt|jpg) to add whatever file types you need. For example, to add .gif file, you would change that line to read:
Code
my ($base, $path, $ext) = fileparse($zip, qr{.(zip|txt|gif|jpg)});
To-Do:
- templates
- better customization features
- continue optimizing code
- breadcrumbs could be better

Changelog:
- to 01/03/2004 - v3 - many bugfixes and updates to 6.7 code
- Nov. 29, 2002 - v2.9 - bugfixes and minor updates (thanks Clankiller)
- Nov. 20, 2002 - v2.8 - removed unused code (thanks Burak smile )
- Nov. 20, 2002 - v2.7 - Added easier method to upload additional file types (thanks Mark smile )
- Nov. 11, 2002 - v2.5 - Wordlets Done
- Oct. 28, 2002 - Initial Update for v6.3+
- Way way back - cal henderson wrote this for ubbcodehackers and ubb v5
Posted By: AllenAyres Re: [6.7] [beta] ubb.db v3 - 01/04/2004 8:42 AM
breadcrumbs fixed with wierd al's help smile Zip updated smile
Posted By: Digital Boy Re: [6.7] [beta] ubb.db v3 - 01/05/2004 4:49 PM
Does this work for 6.6.1?
Posted By: Digital Boy Re: [6.7] [beta] ubb.db v3 - 01/05/2004 5:15 PM
So I guess the short answer is, "no, it doesn't work with 6.6.1". Can it be ported?

- MT
Posted By: AllenAyres Re: [6.7] [beta] ubb.db v3 - 01/05/2004 7:41 PM
I haven't tested it with 6.6, but you can. Upload it and see what happens, that's pretty simple tipsy
Posted By: Digital Boy Re: [6.7] [beta] ubb.db v3 - 01/05/2004 8:44 PM
I should have actually been clearer. I did test it using 6.6.1. Sorry for that mistake. I got some sort of "hash" error... it was looking for something that I hadn't heard of before.

- MT
Posted By: AllenAyres Re: [6.7] [beta] ubb.db v3 - 01/05/2004 9:15 PM
Can you post the error here?
Posted By: Digital Boy Re: [6.7] [beta] ubb.db v3 - 01/05/2004 11:03 PM
Sure.... give me a second to re-install the mod.

- MT
Posted By: Digital Boy Re: [6.7] [beta] ubb.db v3 - 01/05/2004 11:11 PM
PLEASE REMEMBER THAT THIS ERROR IS BEING GENERATED BY 6.6.1, NOT 6.7 BETA:

Software error:
Can't locate object method "TIEHASH" via package "UBB::TiedURL" at /XXX/XXX/cgi-bin/db.cgi line 107.

For help, please send mail to the webmaster ([email protected]), giving this error message and the time and date of the error.

I'm not sure what it means...

- MT
Posted By: Charles Capps Re: [6.7] [beta] ubb.db v3 - 01/05/2004 11:24 PM
Yeah, then the hack certainly requires 6.7. That error is being generated by the lack of the 6.7 URL generation routines.
Posted By: Digital Boy Re: [6.7] [beta] ubb.db v3 - 01/05/2004 11:36 PM
Damn... 6.6.1 got totally passed over. frown I guess there's no chance of a port, huh?

- MT
Posted By: Charles Capps Re: [6.7] [beta] ubb.db v3 - 01/05/2004 11:43 PM
6.7 is close to going final - I would suggest waiting a week or three and upgrading. wink
Posted By: Digital Boy Re: [6.7] [beta] ubb.db v3 - 01/06/2004 12:00 AM
Yeah, that's what I'm thinking too... but all that work... LOL... such is life.

- MT
Posted By: AllenAyres Re: [6.7] [beta] ubb.db v3 - 01/06/2004 4:47 AM
comment out the line and see what happens smile
Posted By: Charles Capps Re: [6.7] [beta] ubb.db v3 - 01/06/2004 5:52 AM
The URL maker will blow up, which sorta breaks the hack entirely. smile
Posted By: AllenAyres Re: [6.7] [beta] ubb.db v3 - 01/06/2004 5:59 AM
heheh smile

The old one should still work with 6.6.
© UBB.Developers