Hi,
after update to Piwigo 2.5, I had my old issue with community/ICY_Modify_Pic Plugin.
May be my concept of using this is wrong and may be there is a other possibility.
What I want: Registered user should upload their own picture, edit them and/or delete them.
What is not working for me: With community plugin user can upload pictures, create albums etc. but can not delete pictures (in case they load the picture in a wrong album)
Only admin can delete pictures.
When I use the latest ICY_Modify_Pic Plugin (with config file) user can delete and edit picture, but then the upload button is gone.
So what should I do? I only need the possibility for user to delete own pictures.
I am realy hopeless, because I had this issue, after an update of ICY. The workaround was to go back to an older version, but this older version is not working with Piwigo 2.5.
HELP!
Offline
Can you tell me
* what is your theme?
* what is the previous version of the plugin (icy_picture_modify) that you used before upgrading to Piwigo 2.5 (and the IPM 2.3.1)?
To allow user to upload image you need to provide the setting upload_image_to as mentioned in
https://github.com/icy/icy_picture_modi … -variables
Offline
Hi Icy,
nice to hear from you again. May be you remember that we had this problem some month ago when an Icy_Modify update was available to ver. 2.
My Workaround was to go back to ver. 1.1.2.
Anyway this version is not working with the Piwigo update 2.5, so I have to use the latest version or user can not delete pictures.
Back to your questions:
I use Stripped
Former (ICY) 1.1.2
What is IPM 2.3.1?
I tried different setting in the config file icy_acl.zml. May be I did not understand the syntax. Please correct or show me a sample, for all registered users to upload and delete pictures.
Is it possible to have only the following text in this file?
default:
edit_image_of: owner
delete_image_of: owner
upload_image_to: ????
moderate_image: no
create_gallery_to: sub
associate_image_to:
present_image_to:
replace_image_of: owner
The file goes into local/config, right?
Thank you for your help!
Offline
okay I guess that you don't have a reasonable settíng for the plugin Icy Picture Modify (I called it IPM for short). The previous version 1.1.2 is simple, and it doesn't support the advanced ACL (uploading, updating images, bla bla). I suggest you to install the new version 2.3.1 (you can use the Piwigo Admin Panel to install the plugin). You will need to edit your ACL settings by editting the file local/config/icy_acl.zml. This is because the 1.x.x versions use settings in PHP files which isn't used any more: Your settings need to be translated to new syntax. YOu can see the example and documentation here
https://github.com/icy/icy_picture_modi … master/doc
You may send me (via email if it should be private) your current setting (icy_acl.php) and I would help to translate to new syntax.
Last edited by icy (2013-03-22 18:13:16)
Offline
Hi, may be you are right. ;-)
I thought the icy_acl.zml is the setting?
So I edit this file with following content:
default:
edit_image_of: owner
delete_image_of: owner
upload_image_to: ????
moderate_image: no
create_gallery_to: sub
associate_image_to:
present_image_to:
replace_image_of: owner
Where can I find (icy_acl.php) ?
Offline
Can you tell me the expect setting? As you meant
> What I want: Registered user should upload their own picture, edit them and/or delete them.
then you need
default: edit_image_of: owner delete_image_of: owner upload_image_to: 134 moderate_image: no create_gallery_to: sub, 134 associate_image_to: present_image_to: replace_image_of: owner
Here 134 is the identity of the album (you can see that number on the address bar when visiting an album).
Never mind if you don't have the file `icy_acl.php`
Offline
please note there is exactly two spaces before *edit_image_of*
Offline
So, I take your code copy it into icy_acl.zml and place the file in local/config, right?
You wrote: Here 134 is the identity of the album (you can see that number on the address bar when visiting an album).
So in my case it would be " 2 " right? Does it cover all other albums (category) under 2?
http://www.fc-vhs-kaarst.de/index.php?/category/2 Two is the first and Main album
What about if I need this for:
http://www.fc-vhs-kaarst.de/index.php?/category/29
and
http://www.fc-vhs-kaarst.de/index.php?/category/29
also?
Offline
Use sub if you want to have effects on sub-albums
You can specify multiples albums, for example: upload_image_to: sub, 2, 29
Don't forget to check [Github] icy_picture_modify file doc/icy_acl.zml.sample there are some good example there
Offline
Ok I got now the functionality to edit/delete pictures and to upload pictures. (The upload button on main page is back)
But it is not working as I need and as I had it before.
In the past the user could only upload to his folder, he could only made new folders inside his folder.
Now he can upload to other folders also.
Ok with some instructions I can get the user to be careful for upload.
But now it is not possible for User to create a new folder inside his folder.
Have a look, this is my user folder, I select this as base:
SC1.jpg
If I click now New album I get a new window and here you can only select one sub folder but from a different user?
SC2.jpg
I am close to give up.
Last edited by Joergen (2013-03-22 19:16:55)
Offline
done
Last edited by Joergen (2013-03-22 19:17:14)
Offline
Shit I forgot to edit create_gallery_to: sub, 134
Sorry my fault.
Offline
Aha, I am coming closer.
If I set create_gallery_to: sub 2, 29, 30 same as upload_image_to: sub 2, 29, 30
Then every body from my three main folders can upload, delete pics and create folder.
So, next question, how can I make that each user can only upload pics to his folder and only create folder inside his folder? :-)
Offline
There is also a negative side effect, I can upload pictures into some other folders and it is not easy traceable how did this!
Offline
> So, next question, how can I make that each user can only upload pics to his folder and only create folder inside his folder? :-)
The setting default: is for all users. If you need setting for the user Jack you can do as the following
Jack: edit_image_of: owner delete_image_of: owner upload_image_to: 134 moderate_image: no create_gallery_to: sub, 134 associate_image_to: present_image_to: replace_image_of: owner
Offline