Advanced search  

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]

Pages: [1]   Go Down

Author Topic: there is a code instead of my thumbs  (Read 3855 times)

0 Members and 1 Guest are viewing this topic.

franzi..

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
there is a code instead of my thumbs
« on: October 27, 2009, 04:37:38 pm »

hey there!

i have a problem with the cpmFetch.
at my site there aren't the 4 thumbs, there is just this part of the code:
Code: [Select]
cpm_viewLastAddedMedia(1,4); $objCpm->cpm_close(); ?>
you can also take a look at the test site: http://t-lautner.com/indextt.html

i've installed cpmFetch in the gallery dictionary and i'm using this code:
Code: [Select]
<?php
  
include "./gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(1,4);
  
$objCpm->cpm_close();
?>


can anybody please help me?
i don't know what i'm doing wrong.

greets franzi
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: there is a code instead of my thumbs
« Reply #1 on: October 27, 2009, 05:09:40 pm »

The "Powered by Coppermine" tag on http://t-lautner.com/gallery/ is hardly readable, please restore it in a readable manner. The page is outdated (cpg1.4.18 oposed to the current stable release cpg1.4.25), so you need to upgrade!

at my site there aren't the 4 thumbs, there is just this part of the code:
Code: [Select]
cpm_viewLastAddedMedia(1,4); $objCpm->cpm_close(); ?>
you can also take a look at the test site: http://t-lautner.com/indextt.html
Hm, not sure about the extra chrome on that test page. Can you create a test page first that contains only the needed PHP code and nothing else? I doubt that files with the extension ".html" will be parsed by PHP on your site.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.