coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: doobie on October 27, 2006, 01:51:34 AM

Title: Total noob is confused by setReturnType! Help!
Post by: doobie on October 27, 2006, 01:51:34 AM
Ok....I'm not gonna lie, this is day 2 of learning how to use cpm_fetch to pull images from my gallery

All I want to do is pull the 4 last commented pictures using the "cpm_viewLastCommentedImages" function.
I read that I can also use the setReturnType option to actully pull the comment (%C) and the author (%a), and I just can't figure out how to do that (it's really sad I know).

This is as far as I got...

  <?
  $options = array(
"cellStyle" => "cpmf",
"altTag" => "Album: %a - %xx%y %Skb - Viewed: %h times. - Photo Added %D days ago.",
"imagesize" => "thumb",
);
 
  $rows = '1';
  $columns = '4';
  $source = '';
 
  $objCpm->cpm_viewLastCommentedImages($rows,$columns,$options,$source);
  $objCpm->cpm_setReturnType('html');
  ?>   


Please someone.... Find it in your heart to help a total noob along their way to not being a noob someday...
Title: Re: Total noob is confused by setReturnType! Help!
Post by: doobie on October 27, 2006, 02:12:31 AM
Neermind....I got it...sorry to waste anyones time!
Title: Re: Total noob is confused by setReturnType! Help!
Post by: vuud on October 27, 2006, 05:52:11 AM
Quote from: doobie on October 27, 2006, 02:12:31 AM
Neermind....I got it...sorry to waste anyones time!

Yay!  I love problems like this