coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: debragrant on November 02, 2008, 12:18:34 AM

Title: different thumbnail sizes
Post by: debragrant on November 02, 2008, 12:18:34 AM
I have my thumbnails in coppermine as 75 set against height & changing the size doesn't change the thumbnail size in my side bar

My code is:

<?php
  
include "home/divahos/html_public/leannejones/gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("home/divahos/html_public/leannejones/gallery/cpmfetch/cpmfetch_config.php");
[
b]$options = array("imageheight"=>"100");[/b]
  
$objCpm->cpm_viewLastAddedMedia(2,2);
  
$objCpm->cpm_close();
?>


It doesn't matter what size the thumbnails in the gallery are or if I remove/change the bold line the images stay the size.  I am not coding the options arrays wrong?
Title: Re: different thumbnail sizes
Post by: Nibbler on November 02, 2008, 12:27:12 AM
You defined the options but you didn't give them to cpmfetch.


$objCpm->cpm_viewLastAddedMedia(2,2, $options);
Title: Re: different thumbnail sizes
Post by: debragrant on November 02, 2008, 12:51:17 AM
thanks I've sorted that but I'd like to get it to look like this (http://laurengrahamfan.org/lauren.php) like how can I chop a thumbnail rather than re-size - here (http://laurengrahamfan.org/gallery/index.php) or here (http://www.jennifercarpenter.org/gallery/index.php)