cpmfetch: Not working on albums greater than 36 cpmfetch: Not working on albums greater than 36
 

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

cpmfetch: Not working on albums greater than 36

Started by TroutSlayer, March 27, 2006, 11:55:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TroutSlayer

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:

<?
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:


   // 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...

Joachim Müller

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.