image size image size
 

News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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