Total noob is confused by setReturnType! Help! Total noob is confused by setReturnType! Help!
 

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

Total noob is confused by setReturnType! Help!

Started by doobie, October 27, 2006, 01:51:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

doobie

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

doobie

Neermind....I got it...sorry to waste anyones time!

vuud

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
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco