Advanced search  

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

Pages: [1]   Go Down

Author Topic: [Solved]: Doesn't show images?  (Read 6066 times)

0 Members and 1 Guest are viewing this topic.

Emilyy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
[Solved]: Doesn't show images?
« 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:
Code: [Select]
cpm_viewLastAddedMedia(1,2); $objCpm->cpm_close(); ?>
The code i'm using is
Code: [Select]
<?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?  ???
« Last Edit: July 28, 2008, 09:32:39 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Doesn't show images?
« Reply #1 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.
Logged

Emilyy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Doesn't show images?
« Reply #2 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
Logged

Nibbler

  • Guest
Re: Doesn't show images?
« Reply #3 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.
Logged

Emilyy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Doesn't show images?
« Reply #4 on: July 28, 2008, 09:08:07 pm »

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

Emilyy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Doesn't show images?
« Reply #5 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"
Logged

Nibbler

  • Guest
Re: Doesn't show images?
« Reply #6 on: July 28, 2008, 09:32:25 pm »

Yes, it's an option. Check the documentation. One question per thread please.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.