Ok the installation worked fine. There were no errors.
But when i put the code on my site it doesn't show the images?
It shows this:
cpm_viewLastAddedMedia(1,2); $objCpm->cpm_close(); ?>
The code i'm using is
<?php
include "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(1,2);
$objCpm->cpm_close();
?>
What is wrong? Why won't the image show? ???
Post more information, such as as a link to your gallery and a link to the page you are trying to use cpmfetch on.
Link to gallery:
http://demidlovato.com/gallery
Page i'm trying to use cpmfetch on:
http://demidlovato.com
But the page i put it on to make it go on that page is
http://demidlovato.com/sidebar.htm
You can't put php code in an html page unless you specifically set that up. Rename your sidebar.html to sidebar.php instead.
oh okay.
I renamed it.
And it worked!
Thanks Nibbler!
Oh also is is possible to make the code open in a new page?
like in url's target="_blank"
Yes, it's an option. Check the documentation. One question per thread please.