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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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.