If you would like to show the timestamp of the image ,you can use
**/
global $wpdb, $nggdb;
if (!defined ('ABSPATH')) die ('No direct access allowed');
if (!empty ($galleries)) :
$albumlist = $wpdb->get_results("SELECT * FROM $wpdb->nggalbum ORDER BY id");
if(is_array($albumlist)) { ?>
'.$album->name.""; ?>
get_results("select sortorder from $wpdb->nggalbum where id = " . $album->id);
foreach($res as $r) {
$gal = implode(',', (unserialize($r->sortorder)));
}
$gg = (explode(',', $gal));
array_shift($gg);
$galleriesID = implode(',', $gg);
$q = "select * from $wpdb->nggallery where gid IN (".$galleriesID.")";
$gallerylist = $wpdb->get_results($q);
$g = array_diff_values($galleries, $gallerylist); ?>
gid);
}
}
return $gid;
}
?>