intermediate image displays syntax intermediate image displays syntax
 

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

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