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: cpm_viewRandomMediaFromCategory and imagesize option  (Read 2682 times)

0 Members and 1 Guest are viewing this topic.

rebolon

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
cpm_viewRandomMediaFromCategory and imagesize option
« on: July 10, 2007, 02:18:11 pm »

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 ?
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.