Two different Servers Two different Servers
 

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

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.