thanks capecodgal - and does your IFrame setup also show info like total views for each image pulled?
I've been able to pull images across two seperate domains with cpmFetch 1.6 - but couldn't get the image stats (like views)
Now that I can't even get the images pulled across domains with cpmFetch 2.0 - I'm l(sadly) ooking at all solutions.
Ok well here is how I got it to work on 2 domains:
My domain where cpmfetch 2.0 is installed is
http://hayden-collective.net/galleryMy 2nd domain where I have the iframe is
http://ultimate-panettiere.comSo on ultimate-panettiere within my header file I have the iframe script pointing to the hayden-collective domain
<iframe src="http://hayden-collective.net/randomimages.php" frameborder="0" width="240"
height="170" marginwidth="0" marginheight="0" scrolling="no"> </iframe>
So you can see that script is pulling from the hayden-collective domain the file randomimages.php within that file I have the following:
<center>
<?php
require_once "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewRandomMediaFrom("cat=4,9,44,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,61,62,55,23,22,11,7,8,5,42,6,21,48,43,20,45,46,47,49,50,54,56,57,58,59,60,10,51,14,15,16:album=0",2,2,$options);
$objCpm->cpm_close();
?>
</center>
So as you can see all I am doing is loading the cpm script on the domain where it is installed and then using the iframe I can call that page to load from another domain. Now you wanted to include the view counts on each image, right? So that would make your randomimages.php (or whatever you decide to call it) look more like this:
<?php
include_once "./photos/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./photos/cpmfetch/cpmfetch_config.php');
$options = array( 'windowtarget' => '_blank');
$options = array("subtitle" => "<center> {{pHits}} Views</center>");
$objCpm->cpm_viewRandomMostViewedMediaFrom("cat=5:album=0",2,4,$options);
$objCpm->cpm_close();
?>
This is what will get you the view counts below the image:
$options = array("subtitle" => "<center> {{pHits}} Views</center>");
I hope all of that makes sense, I am by no means a coding guru - I am just good at finding ways to make things work even if I have to go round in circles to make it happen =)