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

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