forum.coppermine-gallery.net

No Support => General discussion (no support!) => Topic started by: ArielTM on July 23, 2006, 01:07:42 am

Title: Viewing pictures in coppermine stored in Photobucket, no mods needed
Post by: ArielTM on July 23, 2006, 01:07:42 am
Hi all,

First I would like to say that this script is the best gallery script I have seen, including commercial ones..

I found a way to view in coppermine pictures stored in photobucket

First look at my gallery: http://album.arieltm.net/ ( A bit of hebrew but you'll manage :) )
You can see that all the pics there are not really stores on my server but on photobucket...

How did I do it??
The key is The "album directory" setting located under "Files and thumbnails advanced settings"
This setting, by default "album/", sets the directory that all the pictures are being stored at....
Normally this directory should be on your server... but what happens if you point the script to another server??? lets say photobucket??

(http://img301.imageshack.us/img301/8619/1ag5.jpg)

The main idea is to point this setting to your photobucket directory... in my case http://i57.photobucket.com/albums/g224/arieltm/albums/
This way the coppermine script will add at the begining of the src attribute in the IMG tag your photobucket directory....

(http://img301.imageshack.us/img301/121/2kh5.jpg)

And this is what you have to do:


Photobucket structure:
(http://img301.imageshack.us/img301/4990/3pv8.jpg)

Now the problem is to upload new pictures to the gallery because coppermine thinks that your photobucket folder is on your server... and it wants to create the "thumb_" and "normal_"
I uploaded files only with the "batch add files" option so here's the way:
IMPORTANT: your files extension must be lowercase because photobucket renames all the pics extensions to lowercase


Problems I experienced:


Few things I didn't check:


I think that's it....
1 GB space with 10 GB Monthly bandwidth for free!!!

If you have more questions post them here...
Title: Re: Viewing pictures in coppermine stored in Photobucket, no mods needed
Post by: ArielTM on July 31, 2006, 12:36:05 am
Well, It has been a week and no replies...
Did anyone tried it?? anyone experienced a problem?
My gallery is still online if you want to check that it works http://album.arieltm.net

Iknow it's a long shot but maybe you should consider adding this to the tutorials section?
Title: Re: Viewing pictures in coppermine stored in Photobucket, no mods needed
Post by: Joachim Müller on July 31, 2006, 08:09:46 am
Switching the albums folder setting back and forth is not a very elegant way. In fact, you could upload to any external server, creating the intermediate and thumbnails files on your client before uploading would render the step of switching the albums folder every now and then invalid. In fact, you're using Coppermine to resize pics only, which is a comparatively trivial thing to do on your client (e.g. by using IrfanView's batch mode). The albums folder setting in coppermine is just what it says: it expects a folder name, not a URL, so in fact many features will break, because your mod lacks the capability to do what simply can't be done: the PHP script on the server you control (i.e. the server your coppermine-driven gallery resides) doesn't have control over the other server (where you want to store your files). In fact, the remote server could be anything, not just photobucket.
Another drawback of your approach: this will only work if you disallow your users to upload at all.

I appreciate your willingness to share your solution, but imo the whole concept is pretty crude. Remote storage usually is being asked for by newbie users. Your hack is not very newbie-friendly imo.

Related thread: http://forum.coppermine-gallery.net/index.php?topic=33978.0
Title: Re: Viewing pictures in coppermine stored in Photobucket, no mods needed
Post by: ArielTM on July 31, 2006, 09:44:21 am
I'm uploading to photobucket because
a. It doesn't rename the filenames
b. It uses a folder like structure

I'm uploading the pictures first to my gallery not only to create the thumb_ and normal_ but also to add the pictures to the DB

I hope some talented PHP coder will develop my idea and create a mod, as I said with sockets....

R
Ariel