Advanced search  

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]

Pages: [1]   Go Down

Author Topic: intermediate image displays syntax  (Read 3874 times)

0 Members and 1 Guest are viewing this topic.

skidpics

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 223
intermediate image displays syntax
« on: December 22, 2007, 06:05:11 am »

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?



Logged

Steve-R

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: intermediate image displays syntax
« Reply #1 on: January 21, 2008, 06:07:07 pm »

Here's an example that I hope helps.

Code: [Select]

<?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...:)
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 15 queries.