Advanced search  


cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.

Pages: [1]   Go Down

Author Topic: Viewing pictures in coppermine stored in Photobucket, no mods needed  (Read 9498 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine newbie
  • Offline Offline
  • Posts: 11

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: ( 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??


The main idea is to point this setting to your photobucket directory... in my case
This way the coppermine script will add at the begining of the src attribute in the IMG tag your photobucket directory....


And this is what you have to do:

  • Open a Photobucket account
  • Create in your acount the exact direcory structure as on your album dir on your server
  • Upload all your pics, including the thumb_ and normal_ to photobuct in the exact direcory structure as your server (The Windows XP Publisher wizard is recommended: )
  • Change the "album directory" setting to your photobucket folder

Photobucket structure:

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

  • Change the "album directory" setting back to "album/" so the script can access your server
  • Upload all the new pics to a folder under "album/" IN YOUR SERVER (Don't forget to chmod)
  • run the "batch add files" scrpit and add the pics to your gallery
  • Open a new album in photobucket in the exact structure as on your server
  • Upload the new pics to photobucket (including the "thumb_" and "normal_") to the new album in photobucket
  • Change the "album directory" to your photobucket folder

Problems I experienced:

Few things I didn't check:

  • Photobucket automaticly create thumbs called "th_{filename}", maybe you can use them instead on the ones created by coppermine
  • I guess you can create a mod that will alter the upload scripts to upload directly to photobucket (using sockets)

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

If you have more questions post them here...
« Last Edit: July 23, 2006, 01:43:49 am by ArielTM »


  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Viewing pictures in coppermine stored in Photobucket, no mods needed
« Reply #1 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

Iknow it's a long shot but maybe you should consider adding this to the tutorials section?

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
Re: Viewing pictures in coppermine stored in Photobucket, no mods needed
« Reply #2 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:


  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Viewing pictures in coppermine stored in Photobucket, no mods needed
« Reply #3 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....

Pages: [1]   Go Up

Page created in 0.019 seconds with 19 queries.