forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: Jessi on October 13, 2010, 07:33:30 pm

Title: cpmfetch on different servers
Post by: Jessi on October 13, 2010, 07:33:30 pm
Hello all!
I already try to find how I can do it but I can`t find anything!
I wanted to use cpmfetch for 'latest images' on my site. All work but my problem is that my main site and my galelry are on different server (main on private and galler yon flaunt.nu). Now I wanted to ask what I must do that my latets images will work.

Gallery: http://jasonpix.flaunt.nu/
Mainsite: http://jason-beitel.net/
Mainsite (detail link were it must be shown): http://jason-beitel.net/latestimages.php

So in this php-file I wrote:

Quote
<?php
  include "http://jasonpix.flaunt.nu/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("http://jasonpix.flaunt.nu/cpmfetch/cpmfetch_config.php");
  $options = array( 'imageheight' => '45', 'imagewidth' => '45');
  $objCpm->cpm_viewLastAddedMedia (2,4,$options);
  $objCpm->cpm_close();
?>

So I think this links will not work. Anyway is that possible to do that on different server?????
Sorry if there is already a topic but I didnīt find it!
And thank you for helping!
xx Jessi
Title: Re: cpmfetch on different servers
Post by: Jessi on October 13, 2010, 08:42:42 pm
I fixed the problem!
I added this latestimages.php now on the gallery server and include this php-file on my site.
Stupid that I didnīt get this idea earlier. hehe
But thank you!^^
xx Jessi
Title: Re: cpmfetch on different servers
Post by: Αndré on October 13, 2010, 09:04:46 pm
I fixed the problem!
Thanks for resolving your thread. Marking accordingly.