samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

feature request: filter addiction in nggfunctions.php (very useful) #409

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi Alex, i have a little request about you plugin.
i am developing some plugins to be used with yours, but actually, for two of 
them, every user that would use it should make a little modification inside the 
file nggfunctions.php:

Inside the (around line 468) function nggCreateAlbum, the user need to add a 
new filter
- - - - $galleries = apply_filters('ngg_album_galleries_before_paging', 
$galleries); - - -
around line 580 (just before the //check for page navigation).
This filter will permit to reorder the gallery array (my plugins Date order it 
by date) or filter galleries based on authors (my plugins Authors).

Can you add the filter in your next release, please?

Original issue reported on code.google.com by roberto....@gmail.com on 25 Aug 2011 at 6:48

Attachments:

GoogleCodeExporter commented 8 years ago
mmm i forgot to pass another important var: $album

$galleries = apply_filters('ngg_album_galleries_before_paging', $galleries, 
$album);

:)

Original comment by roberto....@gmail.com on 26 Aug 2011 at 10:46

GoogleCodeExporter commented 8 years ago
see r991

Original comment by alex.cologne on 11 Sep 2011 at 3:58