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: there is a code instead of my thumbs  (Read 3861 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.048 seconds with 20 queries.