Announcement

#1 2012-12-27 16:42:17

crazyoda
Member
2012-12-27
7

Have a list of groups or (and?) users who can see a photo / album

First of all, thank you for all your efforts. It's been 3 days that I'm running through the documentation and forum, and I'm almost set about what I want.

After some research, I didn't find any clear anwser to my questions. So if someone can point me the right place, it would be delightful :-)

1/ Is it possible to have a list of groups and/or users who can actually see a an album?
The idea is to inform the user who wants to upload a photo who can actually see the album. (I'm using "Community" plugin to allow users to send photos).

2/ I want to extend the community part, by adding some personnal albums for the users, and mayby allow them to share them to a particular group / user.

I'm using the last stable version 2.4.6

Offline

 

#2 2012-12-27 16:48:39

flop25
Piwigo Team
2006-07-06
7037

Re: Have a list of groups or (and?) users who can see a photo / album

Hello
For an album go to the permission managment page of this album. For photos we are thinking of these feature.
thx for the feedback


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2012-12-27 16:58:30

crazyoda
Member
2012-12-27
7

Re: Have a list of groups or (and?) users who can see a photo / album

Thank you very much for the quick reply.

I wasn't clear enough I guess. I'm aware about album permissions, and they work like a charm.

I just want to list every person who can actually see the album (in the gallery, not the admin panel) as I'm using community plugin to allow users (not admin or webmaster) to upload photo. The only thing they don't know is who can actually see the album.

I guess a query to the DB would do the trick ? I'm trying to figure it out.

Last edited by crazyoda (2012-12-27 16:59:13)

Offline

 

#4 2012-12-27 17:09:39

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Have a list of groups or (and?) users who can see a photo / album

if you want to do it yourself it's the tables "piwigo_user_access" and "piwigo_group_access"
do a join on either "piwigo_users" and "piwigo_groups" to get uernames and groupnames

Offline

 

#5 2012-12-27 17:19:14

flop25
Piwigo Team
2006-07-06
7037

Re: Have a list of groups or (and?) users who can see a photo / album

ha ok, in the public part.
I've searched but didn't find any db requests relevant ... you might be inspired by http://piwigo.org/dev/browser/trunk/inc … c.php#L540 then build your own request as mistic said


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#6 2012-12-27 17:19:57

crazyoda
Member
2012-12-27
7

Re: Have a list of groups or (and?) users who can see a photo / album

Thank you mistic100 for the information.

I'm have a lot of work right now, but it doesn't look to hard to do, I'll try the next fex days. If I suceed, I'll share.

Offline

 

#7 2012-12-27 17:22:17

crazyoda
Member
2012-12-27
7

Re: Have a list of groups or (and?) users who can see a photo / album

Inspiring, indeed flop25. Thanks!

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact