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: cpmfetch: Not working on albums greater than 36  (Read 2432 times)

0 Members and 1 Guest are viewing this topic.

TroutSlayer

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
cpmfetch: Not working on albums greater than 36
« on: March 27, 2006, 11:55:43 pm »

Hi!

I'm still trying to get a firm grip using all the different functions, options, source variables included with cpmfetch, but so far I like it.  Thank you.  The problem I'm having is getting the functions to work on albums numbers greater than 36.

This code works fine:
Code: [Select]
<?
 include "./cpmfetch/cpmfetch.php";
 $objCpm = new cpm("/Gallery");
 $picOptions = array("imagestyle" => "cpg", "imagelink" => "album", "alttag" => "%a");
 $picDesc = array("noimage" => "", "subtitle" => "%d", "tablestyle" => "tableGen");

   // THUMBNAIL
   $objCpm->cpm_viewRandomMediaFrom(1,1, "album=36", $picOptions);

   // DESCRIPTION
   $objCpm->cpm_viewRandomMediaFrom(1, 1, "album=36", $picDesc);

   // PICTURE COUNT
   $objCpm->cpm_listMediaCountFrom("album=36");


This almost identicle code does not work:
Code: [Select]

   // THUMBNAIL
   $objCpm->cpm_viewRandomMediaFrom(1,1, "album=38", $picOptions);

   // DESCRIPTION
   $objCpm->cpm_viewRandomMediaFrom(1, 1, "album=38", $picDesc);

   // PICTURE COUNT
   $objCpm->cpm_listMediaCountFrom("album=38");
?>

The pieces of code are on the same page.  Top piece works, bottom one doesn't.  Any help or explanation would be greatly appreciated.  Thank you...
« Last Edit: March 27, 2006, 11:58:40 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: cpmfetch: Not working on albums greater than 36
« Reply #1 on: March 27, 2006, 11:58:23 pm »

cpmFetch is not part of the coppermine core, but comes as a mod. Mods are only supported on the thread that deasl with the mod itself, not on the regular boards. Locking.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.