forum.coppermine-gallery.net
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
-
can I change the size of the image being displayed on the site?
-
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();
?>
-
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(1, 4, $options);
$objCpm->cpm_close();
?>
hope this helps.
-
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. ::)