I did this like this:
for the latest 6 in the album you are cuurently viewing:
`
<?php
$photosArray = query_single_row("SELECT count(*) FROM ".prefix('images')); $photosNumber = array_shift($photosArray);
$images = getImageStatistic($photosNumber, "latest");
$album = $_zp_current_album->getFolder();
$x = 1;
foreach ($images as $image) {
$imageURL = getURL($image);
$check = substr_count($imageURL,$album);
if ($check == 1) {
$check = substr_count($imageURL,"flv");
if ($check == 0) {
echo '<a href="'.$imageURL.'" title="View image: ' . $image->getTitle() . '">[img]' . $image->getCustomImage(null, 30, 30, null, null, null, null) . '[/img]getTitle() . ""/>";
}else{$x=$x-1;}
} else {$x=$x-1;}
if ($x++ >= 6) {
break;
}
}?>
`
and for the latest 6 images in a specific folder you can put the name in the fourth line (the name of the folder on the server's disk in caseyou have changed the title)
`
<?php
$photosArray = query_single_row("SELECT count(*) FROM ".prefix('images')); $photosNumber = array_shift($photosArray);
$images = getImageStatistic($photosNumber, "latest");
$album = "specificfolder";
$x = 1;
foreach ($images as $image) {
$imageURL = getURL($image);
$check = substr_count($imageURL,$album);
if ($check == 1) {
$check = substr_count($imageURL,"flv");
if ($check == 0) {
echo '<a href="'.$imageURL.'" title="View image: ' . $image->getTitle() . '">[img]' . $image->getCustomImage(null, 30, 30, null, null, null, null) . '[/img]getTitle() . ""/>";
}else{$x=$x-1;}
} else {$x=$x-1;}
if ($x++ >= 6) {
break;
}
}?>
`
it is not very nice code becuase it has to go trough aall your imeges and if you have many it can be a bit slow