coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: TheBoogie on June 16, 2005, 05:29:35 AM

Title: How do I export the last added pictures?
Post by: TheBoogie 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
Title: Re: How do I export the last added pictures?
Post by: foulu on June 16, 2005, 05:36:51 AM
use CPMFetch
http://forum.coppermine-gallery.net/index.php?board=57.0
Title: Re: How do I export the last added pictures?
Post by: TheBoogie 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...

* 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
Title: Re: How do I export the last added pictures?
Post by: Joachim Müller 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".