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: Total noob is confused by setReturnType! Help!  (Read 3520 times)

0 Members and 1 Guest are viewing this topic.

doobie

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Total noob is confused by setReturnType! Help!
« 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...
Code: [Select]
  <?
  $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...
« Last Edit: October 27, 2006, 02:43:13 am by Nibbler »
Logged

doobie

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Total noob is confused by setReturnType! Help!
« Reply #1 on: October 27, 2006, 02:12:31 am »

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Total noob is confused by setReturnType! Help!
« Reply #2 on: October 27, 2006, 05:52:11 am »

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

Yay!  I love problems like this
Logged
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
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 15 queries.