intermediate image displays syntax intermediate image displays syntax
 

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

intermediate image displays syntax

Started by skidpics, December 22, 2007, 06:05:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

skidpics

I am having trouble understanding the exact syntax of coding to use for the intermediate image display..

Currently, I am thinking this:

  $objCpm->cpm_viewLastAddedMedia(1,1.[array $options = "imagesize" => 'int']);

But this does nothing.  There is not clear cut example that I can find on how to apply the $options to this?

Can someone post an example?




Steve-R

Here's an example that I hope helps.



<?php
  
include_once "./cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./cpmfetch/cpmfetch_config.php");
  
$options = array("subtitle" => "{{pOwner_name}},",
                
"imagesize" => "thumb");
  
$objCpm->cpm_viewTopRatedMediaFrom ("cat=1",1,100,$options);
  
$objCpm->cpm_close();
?>



Although $options does appear in the line you have posted, it also needs to be on another line where you can then specify imagesize and it will work, as the above script does for me.

Good luck, and dont forget to mention here if this solves your problem as it helps others.

Steve...:)