image size image size
 

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]

Main Menu

image size

Started by debragrant, September 13, 2007, 11:56:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

debragrant

can I change the size of the image being displayed on the site?

debragrant

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();
?>

chris.h

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.

chris.h

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.  ::)