Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Edit files for users  (Read 3820 times)

0 Members and 1 Guest are viewing this topic.

mykee

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: hu
  • Offline Offline
  • Gender: Male
  • Posts: 140
    • One moment from Hungary
Edit files for users
« 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
Logged
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

mykee

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: hu
  • Offline Offline
  • Gender: Male
  • Posts: 140
    • One moment from Hungary
Re: Edit files for users
« Reply #1 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?
Logged
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Edit files for users
« Reply #2 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.
Logged

mykee

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: hu
  • Offline Offline
  • Gender: Male
  • Posts: 140
    • One moment from Hungary
Re: Edit files for users
« Reply #3 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 {
Logged
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Edit files for users
« Reply #4 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Edit files for users
« Reply #5 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).
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.