different thumbnail sizes different thumbnail sizes
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

different thumbnail sizes

Started by debragrant, November 02, 2008, 12:18:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

debragrant

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?

Nibbler

You defined the options but you didn't give them to cpmfetch.


$objCpm->cpm_viewLastAddedMedia(2,2, $options);

debragrant

thanks I've sorted that but I'd like to get it to look like this like how can I chop a thumbnail rather than re-size - here or here