Hi,
I managed to make it work with a dirty, dirty, dirty hack. DO IT AT YOUR OWN RISK!
If I got some spare time I’m gonna try to improve it, but in the meantime you can:
1) Set under Options > Gallery >Number of images per page:
and Add hidden images:
2) Open nggfunctions.php, around line 250 you’ll find:
if ($maxElement > 0 && $ngg_options['galHiddenImg']) {
if ( ($index < $start) || ($index > ($start + $maxElement -1)) ){
$picturelist[$key]->hidden = true;
$picturelist[$key]->style = ($gallery->columns > 0) ? 'style="width:' . floor(100/$gallery->columns) . '%;display: none;"' : 'style="display: none;"';
}
$index++;
}
right below add:
if ( $maxElement==-1 && $ngg_options['galHiddenImg']) {
if ( ($index > 0) ){
$picturelist[$key]->hidden = true;
$picturelist[$key]->style = ($gallery->columns > 0) ? 'style="width:' . floor(100/$gallery->columns) . '%;display: none;"' : 'style="display: none;"';
}
$index++;
}
Works perfectly with shadowbox. I’m gonna try to change it per gallery, I think I should hack nggfunctions.php and shortcodes.php, plus some admin part to add an option. For example add a checkbox “Single Thumbnail” when inserting a gallery. Let me know!