forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: mykee on June 12, 2010, 09:06:57 am

Title: Edit files for users
Post by: mykee on June 12, 2010, 09:06:57 am
Dear all,

Just a question: where can edit own files my users? Under admin mode no problem, link is there in album view (Edit files), but I don't find user restrictions for this option enable for users.

Or anywhere have a page where can edit my users own all pictures?

My gallery is here: http://foto.acegem.hu/index.php
Title: Re: Edit files for users
Post by: mykee on June 12, 2010, 09:23:19 am
And where can I limit for users restrictions: user can modify filename and description, but cannot delete picture?
Title: Re: Edit files for users
Post by: Joachim Müller on June 12, 2010, 09:45:36 am
One issue per thread. Limitation is explained in http://documentation.coppermine-gallery.net/en/configuration.htm#admin_user_editpics_public_start
More granular control needs to be coded by you.
Title: Re: Edit files for users
Post by: mykee on June 12, 2010, 12:17:16 pm
You don't understand me. I was need a direct Edit files button for users to all albums like moderators or admins.

This solution will be add an Edit files button for all albums to registered users. Where user cannot upload any file, then get message: "Album is empty"

Here is my code:

Open index.php file.

Search this code (941 line):
Code: [Select]
    } elseif (GALLERY_ADMIN_MODE) {
        return html_albummenu($aid);
    } elseif (in_array($aid, $USER_DATA['allowed_albums'])) {
        //check for moderator rights
        return html_albummenu2($aid);
    } else {


Replace with:
Code: [Select]
    } elseif (GALLERY_ADMIN_MODE) {
        return html_albummenu($aid);
    } elseif (in_array($aid, $USER_DATA['allowed_albums'])) {
        //check for moderator rights
        return html_albummenu2($aid);
    } elseif (USER_ID && !$CONFIG['allow_unlogged_access'] == 0) {
        //check for moderator rights
        return html_albummenu2($aid);
    } else {
Title: Re: Edit files for users
Post by: Αndré on June 12, 2010, 01:45:15 pm
I was need a direct Edit files button for users to all albums like moderators
That feature has been (apparently not completely) disabled before the stable release of cpg1.5.x.
Title: Re: Edit files for users
Post by: Joachim Müller on June 12, 2010, 05:50:58 pm
There currently are no moderator features built into coppermine (at least not on purpose). If you need the feature, you have to code it (as I told you).