Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Two different Servers  (Read 3704 times)

0 Members and 1 Guest are viewing this topic.

mystifiedlala

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Two different Servers
« on: March 26, 2008, 10:15:03 pm »

Hey there,
I've installed this mod on my cpg in a same server and it's working great but now I'm trying to install it on two different servers.. I mean the gallery's on one server and the main site is in another server so I wonder if cpmFetch will work and what's the code to use?
Logged

capecodgal

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 123
Re: Two different Servers
« Reply #1 on: March 31, 2008, 06:35:28 pm »

The easiest way I have made this is work is by using an iframe

Code: [Select]
<iframe src="http://hayden-collective.net/randomimages.php" frameborder="0" width="240"
height="170" marginwidth="0" marginheight="0" scrolling="no"> </iframe>

So create the php file on the server where the gallery is and place the fetch inside of it; make sure it works on that server. Now on the main site use the iframe to call the script from the other server. But make sure you tell the images to open in a new window otherwise they will open within the iframe.

Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 16 queries.