2
There is a "Last photo" block which you could display in extgallery, but apart from that fairly obvious thing to do, maybe the code used to create that block may help achieve what you want.
From the file extgallery/blocks/extgallery_blocks.php
The code for that particular block is below I think, I am just guessing ;o)
function extgalleryLastShow($options) {
$photoHandler = xoops_getmodulehandler('publicphoto', 'extgallery');
$param = array('limit'=>$options[0]);
$direction = $options[1];
$desc = $options[2];
array_shift($options);
array_shift($options);
array_shift($options);
$categories = array();
foreach($options as $cat) {
if($cat == 0) {
$categories = array();
break;
}
$categories[] = $cat;
}
$param['cat'] = $categories;
$photos = $photoHandler->objectToArray($photoHandler->getLastPhoto($param));
if(count($photos) == 0) {
return array();
}
$ret = array(
'photos'=>$photos,
'direction'=>$direction,
'desc'=>$desc
);
return $ret;
}
Would anything in the above help?