cpm_viewRandomMediaFromCategory and imagesize option cpm_viewRandomMediaFromCategory and imagesize option
 

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

cpm_viewRandomMediaFromCategory and imagesize option

Started by rebolon, July 10, 2007, 02:18:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rebolon

Hi,

i tried to use cpm_viewRandomMediaFromCategory with the fourth parameters 'option'.

$objCpm = new cpmextends("./cpmfetch_config.php");
$aOption = array( 'imagesize'=>'int' ) ; // possible values are thumb/int/large
$aRes = $objCpm->cpm_viewRandomMediaFromCategory ( 1, 1, $_GET['catUID'], $aOption );

But it always return a full size image. Even if i try thumb.
I checked my albums directory and i saw all image in three version :
large -> IMG_3882.JPG
int -> normal_IMG_3882.JPG
thumb -> thumb_IMG3882.JPG

What did i miss ?