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
use CPMFetch
http://forum.coppermine-gallery.net/index.php?board=57.0
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
please post your questions related to cpmFetch on the board that deals with it. Marking this thread as "closed".