zemmuonne
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: Next Gen Gallery – Single Thumbnail for an Album?Hi everybody,
afaik it’s been added as an option by the original author – yay!Oh, and guess what? nextgen 1.3.2 flash upload works.
Forum: Plugins
In reply to: Next Gen Gallery – Single Thumbnail for an Album?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:
-
-1
and Add hidden images:
-
true
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!
Viewing 3 replies - 1 through 3 (of 3 total)