coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: Emilyy on July 28, 2008, 08:23:14 PM

Title: [Solved]: Doesn't show images?
Post by: Emilyy on July 28, 2008, 08:23:14 PM
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?  ???
Title: Re: Doesn't show images?
Post by: Nibbler on July 28, 2008, 08:37:54 PM
Post more information, such as as a link to your gallery and a link to the page you are trying to use cpmfetch on.
Title: Re: Doesn't show images?
Post by: Emilyy on July 28, 2008, 08:43:06 PM
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
Title: Re: Doesn't show images?
Post by: Nibbler on July 28, 2008, 08:53:04 PM
You can't put php code in an html page unless you specifically set that up. Rename your sidebar.html to sidebar.php instead.
Title: Re: Doesn't show images?
Post by: Emilyy on July 28, 2008, 09:08:07 PM
oh okay.
I renamed it.
And it worked!
Thanks Nibbler!
Title: Re: Doesn't show images?
Post by: Emilyy on July 28, 2008, 09:10:29 PM
Oh also is is possible to make the code open in a new page?
like in url's target="_blank"
Title: Re: Doesn't show images?
Post by: Nibbler on July 28, 2008, 09:32:25 PM
Yes, it's an option. Check the documentation. One question per thread please.