Forums

NextGEN Gallery
[resolved] Manage Gallery admin page (2 posts)

  1. byuu
    Member
    Posted 1 year ago #

    hi guys,

    first of all i would like to thank all involved in the development of this wonderful plugin. It's great and easy to use with lots of features.

    By the way, i would like to ask whether there would be a way to hide all gallery rows in this admin page (nggallery-manage-gallery) which doesnt belong to a particular user.

    The scenario i am having is that i assigned all users that they can add galleries and manage galleries. But for instance, when a user manages his/her galleries, every gallery that was made is seen (though theres no link for them to edit). The only linked gallery to be editted is the one that particular user created.

    any advice on how to do this?
    i can explain maybe again if my question does not make sense :)

  2. byuu
    Member
    Posted 1 year ago #

    hi guys,

    I was lucky to get it with a work-around. But I am not sure though if this could lead to some inconsistencies. However, if there is anyone interested on the workaround or having the same scenario, i editted

    plugins/nextgen-gallery/admin/manage-galleries.php

    find the part:

    foreach($gallery_columns as $gallery_column_key => $column_display_name) {

    in my case, it was around line 191.
    just after that put the code:

    if (!nggAdmin::can_manage_this_gallery($gallery->author))
    			{
    				continue;
    			}

    worked for me. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.