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 [2] 3 4 5 6   Go Down

Author Topic: Upload permission in albums on group basis  (Read 105643 times)

0 Members and 1 Guest are viewing this topic.

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Upload permission in albums on group basis
« Reply #20 on: December 05, 2006, 06:29:21 pm »

One group only.
Logged
Chief Geek at Ranium Systems

ST247

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Upload permission in albums on group basis
« Reply #21 on: December 06, 2006, 11:22:45 am »

I just installed Coppermine 1.4.10.  I followed your instructions to change the database and upload the files.
I don't see any option to give permissions to a group either.
Thanks in advance for your help.
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Upload permission in albums on group basis
« Reply #22 on: December 06, 2006, 11:26:34 am »

Did you just replaced the original files with the modded files? or applied the mod manually?
Logged
Chief Geek at Ranium Systems

ST247

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Upload permission in albums on group basis
« Reply #23 on: December 10, 2006, 01:48:51 pm »

Did you just replaced the original files with the modded files? or applied the mod manually?
I replaced the files since I didn't have any other mods installed.
Logged

ugaMack

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Upload permission in albums on group basis
« Reply #24 on: December 15, 2006, 07:36:49 pm »

This is part of what I'm looking for. Does anyone know of a mod or plugin that would allow a group to create an album in a category outside of the user galleries?

Thanks
Logged

Zenigata

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
    • Il sito di Zenigata
Re: Upload permission in albums on group basis
« Reply #25 on: December 16, 2006, 02:39:33 am »

Does this mod works with a bridged SMF?
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Upload permission in albums on group basis
« Reply #26 on: December 16, 2006, 06:09:27 am »

@ugaMack: afaik no such mod exists.

@Zenigata: Yes it should work.

@ST247: PM me your admin username/pass along with the site url.
Logged
Chief Geek at Ranium Systems

Jost

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Upload permission in albums on group basis
« Reply #27 on: December 27, 2006, 11:58:22 pm »

thanks - works like a charm
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Upload permission in albums on group basis
« Reply #28 on: February 10, 2007, 11:39:18 am »

Hi Abbas,

i am already using the mod http://forum.coppermine-gallery.net/index.php?topic=26218.0 and that works like a charm now.

This mod looks like something i coulduse  as wel. I am working on a site which, if all goes as planned, will have a large numbers of scouting groups adding pictures to the site. At this moment i can grant someone the right of upload by adding them to the Upload group. But that means they can basicly upload into any album which is set to accept uploads by visitors.

With this mod i can add a group for each person who requested upload permission. That person can then only upload in those albums where his/her group has been set as the one who can upload. But that would , in my case, probably result in a large list of groupnames in groupmgr.php

What i am looking for, and i am not sure if this mod can be adjusted for it, is a way to add one group to groupmgr.php which has upload priveleges, named Upload. And then i make someone a member of that group. And when i then assign the Upload group to a newly created album i can select All or choose specific person or persons in case there are more then 1 uploader from a group who wants to add pictures.

I hope i make sense , if not say so and i'll see if i can clearify.

Regards,
Hein
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Upload permission in albums on group basis
« Reply #29 on: February 10, 2007, 01:05:18 pm »

Hein,

Create a group called Uploader. All users who wants to upload should have this group as either their primary or secondary group. Then from album properties page allow the Uploader group to upload in that album. All users who have Uploader as their primary or secondary group will then have upload permission to that album.
Logged
Chief Geek at Ranium Systems

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Upload permission in albums on group basis
« Reply #30 on: February 10, 2007, 02:33:35 pm »

I think you misunderstood me Abbas.

When i set it up like you describe i still would have to make multiple Uploader group. I'll try to describe. Scoutgroup A and Scoutgroup B want to upload pictures from a camp to CPG. They both have 1 person in their group who takes care of the uploading. But i do not want the person from A being able to also upload in the album from person B and vice versa.

What i would see as a usefull feature is that you can add people to the group Uploader and that you can select in Album properties to either let the whole group Uploader be able to upload or just 1 person from to group to stop others from uploading in the wrong album.

I attached a picture which hopefully makes it visual. In the picture the group Uploader is chosen as the group who can upload into a album and All is chosen to allow everyone in that group to upload. Instead of All one could also choose just 1 person.

Hein
« Last Edit: February 11, 2007, 09:36:51 am by Hein »
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Upload permission in albums on group basis
« Reply #31 on: March 01, 2007, 03:14:20 pm »

I usually do not bump but in this case i am eager to know if this mod can do what i want. It would make my life easier knowing that even though someone is in the Uploader group they can not upload in all albums accept the ones i grant them rights to.

:) Abbas if you would so kind to give some thought to this option that i think would be a great benefit to this mod.

Kind regards,

Hein
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Upload permission in albums on group basis
« Reply #32 on: March 02, 2007, 07:06:02 am »

Hein, Sorry for not replying your query. I guess with some more code changes (and db changes) the mod can do what you want. I will have to take a look at it to know how much more work is needed. (I myself have forgotten how this mod works and the code that went into it ;) )
Logged
Chief Geek at Ranium Systems

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Upload permission in albums on group basis
« Reply #33 on: March 02, 2007, 04:24:21 pm »

No need for sorry Abbas, you are doing this voluntarily ;) Which i do appreciate.

Thanks for having a look at my request, i do think it would be of great benefit for sites with a large group of uploaders who may only upload to their assigned albums.

Again, thanks and io hope the outcome of your investigation will be positive  ;D

Hein
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Upload permission in albums on group basis
« Reply #34 on: March 08, 2007, 06:30:24 pm »

@Hein: Just an update that nothing has been done in this regards. Not getting enough time :(
Logged
Chief Geek at Ranium Systems

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Upload permission in albums on group basis
« Reply #35 on: March 09, 2007, 02:55:39 pm »

Abbas

not a problem, your not being paid to do it  ;D. I already owe you for looking into it. I do think it is possible but i lack the coding skills  :-\

The mod works for my site, i only have to make sure the people i grant the upload right understand that they have to be carefull in which album they upload.

I sure hope you can find time and makes this work.

Thanks and regards,

Hein
Logged

Rorge

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Upload permission in albums on group basis
« Reply #36 on: March 12, 2007, 06:02:29 am »

Hello,

Thanks for your work in this MUCH needed area.

When I applied this mod and went to change the album properties (visitor can upld files:yes) etc...then selected the group I wanted to be able to upload pics and selected update album I received the message:

There was an error while processing a database query

Stuck.  Thanks for your help
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upload permission in albums on group basis
« Reply #37 on: March 12, 2007, 09:02:08 am »

There was an error while processing a database query
Enable debug_mode, then replicate the error. Post the actual error message (the query that fails). Do not post debug_output.
Logged

Rorge

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Upload permission in albums on group basis
« Reply #38 on: March 12, 2007, 03:41:41 pm »

Thanks for your help GauGau

While executing query "UPDATE cpg1410_albums SET title='Elizabeth', description='', category='4', thumb='0', uploads='YES', comments='YES', votes='YES', visibility='0', alb_password='', alb_password_hint='', keyword='', upload_group='112' WHERE aid='39' LIMIT 1" on 0

mySQL error: Unknown column 'upload_group' in 'field list'


Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upload permission in albums on group basis
« Reply #39 on: March 12, 2007, 06:58:02 pm »

Means that you haven't run the query
Code: [Select]
ALTER TABLE `cpgPrefix_albums` ADD `upload_group` INT NOT NULL ;as suggested in the initial posting of this thread. Make sure to replace cpgPrefix with the actual prefix of your Coppermine database tables.
Logged
Pages: 1 [2] 3 4 5 6   Go Up
 

Page created in 0.036 seconds with 20 queries.