Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Move originals to another server, leave thumbs and normals  (Read 3845 times)

0 Members and 1 Guest are viewing this topic.

amissner

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Move originals to another server, leave thumbs and normals
« on: August 23, 2005, 01:44:22 am »

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...)
« Last Edit: August 26, 2005, 09:27:51 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Move originals to another server, leave thumbs and normals
« Reply #1 on: August 23, 2005, 09:47:16 am »

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.
Logged

amissner

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Move originals to another server, leave thumbs and normals
« Reply #2 on: August 23, 2005, 07:19:54 pm »

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.

Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Move originals to another server, leave thumbs and normals
« Reply #3 on: August 23, 2005, 11:21:24 pm »

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

amissner

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Move originals to another server, leave thumbs and normals
« Reply #4 on: August 24, 2005, 03:24:50 pm »

Wow.  Sorry, it never even occured to me.  I stuck 1.4 on there for another reason...
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.