How do I export the last added pictures? How do I export the last added pictures?
 

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

How do I export the last added pictures?

Started by TheBoogie, June 16, 2005, 05:29:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TheBoogie

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


TheBoogie

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

Joachim Müller

please post your questions related to cpmFetch on the board that deals with it. Marking this thread as "closed".