Move originals to another server, leave thumbs and normals Move originals to another server, leave thumbs and normals
 

News:

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.
[more]

Main Menu

Move originals to another server, leave thumbs and normals

Started by amissner, August 23, 2005, 01:44:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

amissner

Hi, I have checked the forums and everywhere else for the solution to my problem with no luck.

What I would like to do is move my originals to another server, but leave the thumbs and normals.  When a user clicks the thumb it will load the normal, when they click the normal it will load the original from my other server (e.g. dynamically change the URL to point to another web server).  My original idea was to directly modify the database, but I see now that is not going to work.  I was hoping there would be a published mod or hack to move the originals, but I don't see any.  I would be willing to modify the php, but I have looked and cannot find the nugget of code where the originals get loaded.

Thanks in advance.

Adam Missner
http://missner.com/img (kinda lame right now, but...)

Joachim Müller

has been asked a thousand times already. Storing coppermine content on remote servers is not supported, and there's no actual hack to do so. The coppermine devs won't do this, although it's possible (in theory). Search the board to find out more.

amissner

Here's how I did it.  I changed

$pic_url = get_pic_url($row, 'fullsize');

to

$pic_url = 'http://xyz.com/'; . get_pic_url($row, 'fullsize');

in include\themes.inc.php

That accomplished what I wanted to do, that is display the original from an alternate server.  Obviously the path must be identical on the alternate server.


Tranz

I think include/themes.inc.php is specific to cpg 1.4 and this is the 1.3 board...

amissner

Wow.  Sorry, it never even occured to me.  I stuck 1.4 on there for another reason...