WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Suggestion: filters for more customizing (1 post)

  1. roberto.c
    Member
    Posted 1 year ago #

    Hi, i would like to suggest to add some filters that should be useful in customizing the plugin.
    Actually, i made these changes everytime i upgrade to a new version of NGG:

    file nggfunctions.php -> function nggShowGallery

    (this is for gain more control on pics list)

    i add

    $picturelist = apply_filters('ngg_gallery_picturelist', $picturelist, $galleryID);

    before

    if ( !$picturelist )
            return __('[Gallery not found]','nggallery');

    file \admin\album.php -> function controller

    i add

    $this->albums = apply_filters('ngg_albums', $this->albums);

    after

    $this->albums = $nggdb->find_all_album();

    and i add

    $this->galleries = apply_filters('ngg_galleries', $this->galleries);

    after

    $this->galleries = $nggdb->find_all_galleries();

    I hope they will be useful for all and that maybe those filters wil be added in next release :)

    http://wordpress.org/extend/plugins/nextgen-gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.