Two different Servers Two different Servers
 

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

Two different Servers

Started by mystifiedlala, March 26, 2008, 10:15:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mystifiedlala

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?

capecodgal

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


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