UBB.Dev
Posted By: Mike Bobbitt Uploadable Photo Gallery for UBB - 06/08/2001 9:03 PM
Folks,

I just finished developing a tool that allows UBB users to upload photos to a public gallery.

It's not very polished at the moment, but I was wondering how much interest there was in such a tool. I could clean it up and make it easier to install if there were enough interested parties.

If you want to see it in action here it is:

Upload photo page:
http://cdnarmy.ca/cgi-bin/gallery.pl

View photo gallery:
http://cdnarmy.ca/cgi-bin/album.pl

If anyone is really hot to trot, I can provide the source and some advice on installing it as is. It's essentially just the 2 PERL CGIs listed above.

Looking for feedback,
Posted By: technoforum.de Re: Uploadable Photo Gallery for UBB - 06/11/2001 5:26 PM
WOW! I have been searching a long time for such a hack, I really would like to use it but the only thing i'm missing is the ability for users to create their own sections/directories/categories and the possibility to list all categories
a) alphabetically
b) by date (chronologically)
c) by user who uploaded the pictures
It would be also a great thing to resize all thumbnails to the same size, so the overview would look more 'clean' -
GREAT! please drop me an email concerning this hack 2
[email protected]
thanks a lot and i'm wondering why noone else seems to be intersted in this hack frown
chris
http://technoforum.de
Posted By: Mike Bobbitt Re: Uploadable Photo Gallery for UBB - 06/11/2001 5:59 PM
I've put the scripts online at http://perl.cdnarmy.ca/album26.zip. They still need some work, but it's coming along.

I like your ideas, I'll throw them on to the "to do" list. They're certainly all possible. The thumbnails are actually built as files (using Thotor, a thumbnail generator), so they can be built according to personal taste. I'd love to have an "on the fly" thumbnail generator, but I haven't been able to find one...

Thanks, and keep the comments coming!

[ June 11, 2001 02:19 PM: Message edited by: bobbitt ]
Posted By: p2k Re: Uploadable Photo Gallery for UBB - 06/12/2001 2:12 PM
I really like this and have downloaded the .zip file. I would be all for having you clean it up and make installing it easier. Looking at the files, I see you have a large range of directories that the script uses. (/data/photos) or (d:/profiles/bobbitt/Inetpub/wwwroot/cgi-bin/photo.gif") and (../img/photo.gif).

I'd love to test this out for myself but knowing what to change and not to change seems to be the headache here.

Great idea though, congrats on pushing it out to all of us. Hope to see some instructions with this.

*edit* It's going slowly but I'm putting it together step by step.

Perhaps the "Error - Error opening file for writing" comment when trying to write to the gallery directory could be clearer. I didn't know if it was the log file or the image that it couldn't open. (Had to set my permissions to my gallery directory to chmod 666).

Also, one has to create a 0 byted log file (gallery.log) before the log file will start working. Perhaps include this in your zip file. At least, that's what I had to do before I could get past the log error messages smile

Another idea (sorry, just brain storming) is a file size limit. Someone could rename a 500meg bin file to image01.jpg and submit it, crashing the server.

Question: If a user is banned from the message board, will the gallery script detect this and disallow photo submissions? Can a user who's IP is banned from posting on UBB still submit as well?

Ever thought of a rating system? Users could vote for their favorite image. Then you could have a "Top 10 Images" within the photo gallery.

This has great potential and I hope you continue to work on it in your spare time as it will get a lot of use and support!

Last note: Just got it working. For anyone wanting to install this, throw it into your cgi-bin directory and run the gallery.pl or album.pl from your browser. Any errors will happen on screen and you can fix them in the associated .pl file.

p2kay

[ June 12, 2001 07:55 AM: Message edited by: p2k ]
Posted By: Mike Bobbitt Re: Uploadable Photo Gallery for UBB - 06/12/2001 5:59 PM
Ok, the 2 major things I'm working on first are:



    [*] Merging gallery.pl and album.pl into one program, so they can share settings.

    [*] Moving all the settings out to a config file, and cleaning up the installation instruvtions.


Once that's done, I think I'll be in a better position to address the other requests. Keep nagging me if you don't hear from me in a few days...

Cheers

Edit: Wow, P2K your post changed on me! I'll have to go back and read it again, looks like you've added some great feedback. Thanks! (Just wanted to say that I wasn't ignoring your message with this post...)

[ June 12, 2001 11:00 AM: Message edited by: bobbitt ]
Posted By: AllenAyres Re: Uploadable Photo Gallery for UBB - 06/12/2001 6:21 PM
smile

Thanks Mike for adding your work here, I am gonna move this thread to our "beta" forum, you should see a good bit more response there...:D
© UBB.Developers