coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: debragrant on September 13, 2007, 11:56:12 AM

Title: image size
Post by: debragrant on September 13, 2007, 11:56:12 AM
can I change the size of the image being displayed on the site?
Title: Re: image size
Post by: debragrant on September 13, 2007, 11:58:51 AM
my code is:

   <?php
  
include "./gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(2,2);
  
$objCpm->cpm_close();
?>
Title: Re: image size
Post by: chris.h on September 17, 2007, 05:14:57 PM
I was searching for the same thing and found this thread, its about the 5th post down...
http://forum.coppermine-gallery.net/index.php?topic=46337.0

answer is adding the array 'imagewidth' => '45', 'imageheight' => '45' I think, as in

so your code will be something like:

<?php
  
include "./gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  
$options = array( 'pHits' => 'Views: {{pHits}}''imagewidth' => '45''imageheight' => '45');
  
$objCpm->cpm_viewLastAddedMedia(14$options);
  
$objCpm->cpm_close();
?>


hope this helps.
Title: Re: image size
Post by: chris.h on September 17, 2007, 05:17:59 PM
Can't find an edit button, just wanted to say the 'pHits' => 'Views: {{pHits}}' area of code wasn't working for the user - it was part of a seperate issue.

So it is just the array as listed you need.  ::)