Edit files for users Edit files for users
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Edit files for users

Started by mykee, June 12, 2010, 09:06:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mykee

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
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

mykee

And where can I limit for users restrictions: user can modify filename and description, but cannot delete picture?
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

Joachim Müller

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.

mykee

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):
    } 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:
    } 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 {
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

Αndré

Quote from: mykee on June 12, 2010, 12:17:16 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.

Joachim Müller

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).