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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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.