[Solved]: Doesn't show images? [Solved]: Doesn't show images?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: Doesn't show images?

Started by Emilyy, July 28, 2008, 08:23:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Emilyy

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?  ???

Nibbler

Post more information, such as as a link to your gallery and a link to the page you are trying to use cpmfetch on.

Emilyy

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

Nibbler

You can't put php code in an html page unless you specifically set that up. Rename your sidebar.html to sidebar.php instead.

Emilyy

oh okay.
I renamed it.
And it worked!
Thanks Nibbler!

Emilyy

Oh also is is possible to make the code open in a new page?
like in url's target="_blank"

Nibbler

Yes, it's an option. Check the documentation. One question per thread please.