Closed noopara closed 11 years ago
An category
or album
in Piwigo is the same. I don't remember why and when that name comes from, though.
Every album has it owns identity, and you may find it under albums' url, for example this one http://vonhudieu.net/zen/index.php?/category/42 has the identity 42
. If you get the idea you can easily find album's identities in various places in Piwigo control panel
There is no admin page for the plugin. I am sorry for any inconvenience; Programming a html stuff in piwigo is so hard and I have not much time for that. If you can the idea of the file icy_acl.zml
you can easily set up all possible ACL without the UI, though.
Hope this helps. If you have any questions just ask.
OK, thanks. That helps a lot.
So, I changed the identity of the album to the correct number (number 1 in this case) and the user name to one of my users in the icy_acl.zml file and everything should work but I don't see anywhere where a user is presented with an option to delete or edit a photo. Where should it be?
See my icy_acl.zml file below.
I'm not sure what this line means: upload_image_to: sub, 1 Does this mean that the user lbaer can upload images only to a sub album within album 1? What if there is no sub album in album 1?
Take a look at my file below and let me know if it looks right.
Thanks
# Default settings for all users (except guest user). These settings are
# put in the code of the plugin `icy_picture_modify` so you may not have
# to specify them. All of the following lines mean:
# - User can edit their own images (image they uploaded)
# - User can't delete any image
# - User can upload image to sub categories. Unfortunately, there is no
# category specified, so they can't upload images to any category.
# - All images are showed on the Piwigo system after they are uploaded;
# they will not require any moderation work
# - User can create new gallery inside sub categories. As there isn't
# any category specified, they can't create any new gallery.
# - User can't link an image to any album
# - User can't create representation for any album
# - User can update new version of their own images
default:
edit_image_of: owner
delete_image_of:
upload_image_to: sub
moderate_image: no
create_gallery_to: sub
associate_image_to:
present_image_to:
replace_image_of: owner
# This user can upload image to category whose identity is `34`;
# He can edit image of his own and of the user `example_user0`;
# He can link images to any album in Piwigo system;
# He can create new gallery in the parent category `34` and its sub
# category; He can't make representation for any album
# Finally, he can't delete any images.
lbaer:
upload_image_to: sub, 1
edit_image_of: lbaer
associate_image_to: any
create_gallery_to: 1, sub
present_image_to: no
delete_image_of: lbaer
# This user `example_user2` will have all settings of `example_user1`,
# except he can delete images of `example_user1` and his own
example_user2: @example_user1
delete_image_of: owner, example_user1
# 'Friends' and 'Authors' are groups in Piwigo administrator menu.
# If a user belongs to these two groups, they can upload images to
# two albums 56 and 46, and to all children of these two albums.
Friends:
edit_image_of: owner
members: example_user1, example_user2
upload_image_to: sub
Authors:
upload_image_to: 56, 46, sub
# Even if the user 'example_user3' doesn't belong to group 'Friends',
# you can use reference to load all settings from that group
example_user3: @Friends
What I would like is the user to be able to upload photos and edit them or delete them. Do I have the settings correct in the file?
On Sat, 09 Mar 2013 09:43:14 -0800 noopara notifications@github.com wrote:
So, I changed the identity of the album to the correct number (number 1 in this case) and the user name to one of my users in the icy_acl.zml file and everything should work but I don't see anywhere where a user is presented with an option to delete or edit a photo. Where should it be?
If they are allowed to delete image, the would see the link when in the edit form. That means that :
* Choose edit image
* Select Delete link
Please note there is an option to update an image by uploading another version of it . This would help much without deleting-and-re-uploading.
See my icy_acl.zml file below
I'm not sure what this line means: upload_image_to: sub, 1 Does this mean that the user lbaer can upload images only to a sub album within album 1? What if there is no sub album in album 1?
That means lbaer
can upload images to the album 1
and all its
sub-albums. By removing sub
from that line lbaer
can only upload
images to the album 1
.
What I would like is the user to be able to upload photos and edit them or delete them. Do I have the settings correct in the file?
Your settings in the .yaml
file is almost correct. Remember to delete
some unused settings (for example, example_user
and maybe settings
for Friends
and Authors
).
There are two different permissions: for album and for images. In piwigo they are not quite related to each other, though. You can check in the section KNOWN VARIABLES in the section
https://github.com/icy/icy_picture_modify/blob/master/doc/zaml.md
Regards,
I was able to get it to work. I still would like to know what is meant by "upload_image_to: sub, 1"?
Does this mean that the user lbaer can upload images only to a sub album within album 1? What if there is no sub album in album 1?
On Sat, 09 Mar 2013 21:25:55 -0800 noopara notifications@github.com wrote:
I was able to get it to work. I still would like to know what is meant by "upload_image_to: sub, 1"? Does this mean that the user lbaer can upload images only to a sub album within album 1? What if there is no sub album in album 1?
sub,1
means they can upload image to the album 1
and all its
sub-albums (except the forbidden albums). If there is no sub-albums in
the album 1
, the setting sub
has no effect.
Excellent! Thanks for the support!
You're welcome.
This is my first post.
I am trying to install icy_picture_modify and don't understand categories. I've searched the docs and forum and can't find the answer.
I've looked through my gallery and I don't see where categories come into play. There is no field for category anywhere in my gallery and yet icy is dependent on categories.
In the icy.acl.zml file the settings for example_user1, it says that the user This user can upload image to category whose identity is
34
and can create new gallery in the parent category34
and its sub categoryWhat is category 34? Where is it set?
I don't see an admin page for icy. Does this mean that the icy.acl.zml file has to be changed manually for each user?