image size image size
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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