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: How do I export the last added pictures?  (Read 2685 times)

0 Members and 1 Guest are viewing this topic.

TheBoogie

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
How do I export the last added pictures?
« on: June 16, 2005, 05:29:35 am »

How do I export the last added pictures thumb images to another page?

well guys.. Iwas trying to do the following: get all the last added pictures' thumbnails images (the little ones) and include them into my web-sites's page..  Is that possible??

thanks :D:D
« Last Edit: June 17, 2005, 07:21:33 am by GauGau »
Logged

foulu

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 236
  • uhm

TheBoogie

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: How do I export the last added pictures?
« Reply #2 on: June 17, 2005, 02:17:28 am »

Thank you! I went for that and got it quite straight working!  I was just wondering if anyone could tell me if there is any way the little pictures don't come off inside a table?  because some of them are larger than others wich makes it a little weird.  The php code of the coppermine.php file where the last added pics are told to be included is down here...

Code: [Select]
* Displays images of last added media
*
* This will generate a table and populate it with the last added media and style
* it based on entries in the style hash. The number of photos returned matches the number
* of rows multiplied by the number of columns.    Supports the setReturnType option.
*
* @param int $rows The number of rows desired in the output
* @param int $columns The number of columns desired in the output
* @param array $options Optional, Configuration options
* @return string XHTML code
* @since Version 0.5
* @todo allow for media to be specified / filtered - jpg, mp3, etc
*/
function cpm_viewLastAddedMedia($rows, $columns, $options="") {
$this->loadOptions($options);
$resultset = $this->cpm->getLastAddedMedia($rows*$columns);

$retval = "";
switch ($this->returntype) {
case ('resultset'):
$retval = $resultset;
break;
case ('html'):
$retval = $this->createTable($resultset,$rows,$columns);
break;
case ('print'):
default:
print $this->createTable($resultset,$rows,$columns);
}

$this->clearOptions();
return ($retval);
}

thanks! :D
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How do I export the last added pictures?
« Reply #3 on: June 17, 2005, 07:21:13 am »

please post your questions related to cpmFetch on the board that deals with it. Marking this thread as "closed".
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 15 queries.