Hi everyone,
I was wondering if it is possible to make the <add comments> and <view comments> permissions for Everyone the default for new albums. Currently, if a user registers and a new album is made for them, only the <view all> permission is available. The admin needs to add the <add comment> permission over again for Everyone in order for the option to appear in new albums. Will I have to edit the layout.inc or something in config?? Thanks for any info or help.
-Andrew
Posts: 8601
permissions for new albums inherit from the parent album.. if your user albums are created in the top level album then add add/view comment permission on the top level album.
Posts: 32
I understand the permissions get inherited from the parent album, but that seems to occur only if you manually create the album. When a user registers, I chose the option so that it automatically creates an album for them. These albums do not have the same permissions as the parent album it seems. That's why I had to manually delete and then readd the permissions to the parent album in order for all the newly created albums to have the same permissions. I don't know how to make it so that the automatically created albums will also share the parent's permissions.
-Andrew
Posts: 8601
ah, right.. useralbum module clears the permissions so it can put it what was selected in user album site admin (who can view photos, etc..).. the settings there don't have anything about comments. not sure what the right solution is here.. you can certainly modify modules/useralbum/classes/UserAlbumHelper.class to add comment permissions, or make your own module that adds those permissions on any newly created album. But maybe we can modify useralbums slightly so it clears only view permissions to put in place the site admin preference, but inherits other things.
Posts: 81
Have you manage to change the permission of the useralbum module?
I have the same need.
tks
Florian
Posts: 7
I am not sure why, but the User Albums module deletes all permissions when albums are created, rather than inheriting them from the parent album. It would be great to have the option to just inherit permissions from the module admin settings...
I just used a suggestion from this thread ( http://gallery.menalto.com/node/48321 ) and commented out the code that deletes permissions on album creation, seems to work for me. You just have to set your proper permissions in the parent album, and user albums should inherit them:
______________________
http://www.speedguide.net
Posts: 81
Could you tell me exactly which line to delete and which lines I have to add?
Or can you copy paste the entire "UserAlbumHelper.class" file. I am unsing Gallery 2.2 RC2
thanks
Florian
Posts: 8601
yes, what i mentioned in my comment above from april 2005 has in fact been implemented. useralbum sets the view permissions as selected in site admin, but inherits other permissions from the parent album. this is in G2.2.
Posts: 7
I'm using G2.2RC1, and the "add comment" and "view comments" permissions I had set were not inheritted - most permissions were just deleted by default. Is that something that was fixed in RC2 ?
Posts: 81
Could you tell me where to integrate those line?
thanks in advance!
Florian
Posts: 8601
RWaters, no.. the fix was in RC1 too. It only applies to newly created user albums, not ones that were created before using G2.2. If it is not working, please describe your setup, the steps you are performing and the expected and actual results.
Posts: 7
mindless... I initially installed a typical 2.1.2, then added modules (including User Albums), then upgraded to 2.2 RC1.
The only notable settings that I've changed are that I added a couple of new groups, and I assigned them different comments permissions: 2 groups with view/add permissions, and one group with all comments permissions.
I have a number of people visiting the gallery and albums created for them, but I had to go dig into the class file and remove those lines in order to have the permissions inherited for some reason. I believe that the albums created in G2.2 RC1 did not have the permissions inherited either, although you are right, some of the albums may have been created in 2.1.2, I can't be 100% certain.
______________________
http://www.speedguide.net
Posts: 7
In this class file: modules/useralbum/classes/UserAlbumHelper.class
______________________
http://www.speedguide.net
Posts: 81
I am using the latest version of the useralbum module and I can't find the line above:
here is my file (modules/useralbum/classes/UserAlbumHelper.class)
Posts: 8601
RWaters, maybe the 2.2 package you got did not include the useralbum module, and you're still using the G2.1 version of useralbum?
Posts: 7
Seems that way... I have version 1.0.3 of User Albums installed for some reason, maybe I downloaded it from the 2.1.2 modules list initially... And it never got upgraded (since I downloaded the "typical" 2.2 version)
I suppose I should try the 1.0.4 version, I'm just a bit uneasy after the time I had to spend with 1.0.3 to make it work for me.
______________________
http://www.speedguide.net
Posts: 81
Could you make me a ZIP of the module you use so that I can have the correct behaviour for permission.
tks
Florian
Posts: 81
I have found a version of the useralbum version 1.0.3 and I have removed those line.
And when the useralbum is created is still ave all the right.
any idea why?
RWaters,
would you mind sharing your useralbum module?
I really need to solve this problem quikly.
Thanks in advance for your help.
Florian
Posts: 8601
maybe try gallery 2.2?
Posts: 81
Does not make any difference, the useralbum have all the permission.
I have also try the solution describe here
using "simple.basic" to add, upload and delete command for the simple module.
but it does not work. it gives me a blank page when I click on "Your album".
Please help me.
Florian
Posts: 8601
what steps did you try, what happened, and what did you expect to happen?
Posts: 81
what did you expect to happen?
I would like the album created with useralbum module to give album owners only simple module permissions (create album; edit : edit all; delete) + for registered users to have the following permission : Add comments , view comments.
What did I have achieve
I have activate the useralbum module 1.0.5, the simple module 0.2.0 and the JensPermsModule so that when I create an album it only gives simple module permissions and It worked.
My problem
When the album is created by the useralbum module, it gives the owner all the core permissions.
what steps did you try
Test 1: modules actives: useralbum + simple module
Try to autocreate useralbum in an parent with restricted permission set to all the simple module permission: create album; edit : edit all; delete
Result: album created with all the permission
Test 2: modules actives: useralbum + simple module + JensPermsModule
Try to create an album in a parent album with restricted permission set to all the simple module permission: create album; edit : edit all; delete
Result: ok ; album is created with simple module permissions
Test 3: modules actives: useralbum + simple module + JensPermsModule
Try to autocreate (using useralbum module) an album in a parent album with restricted permission set to all the simple module permission: create album; edit : edit all; delete
Result: KO ; album is created with all core permissions
Test 4: modules actives: useralbum + simple module + JensPermsModule
Same as test 3 with modifying useralbum/classes/UserAlbumHelper.class by supressing
Result: useralbum is created with restricted permissions of the simple module (create album; edit : edit all; delete) but all registred user can also add album and item in the created album. How can i allow only the useralbum creator to add picture and album in his album?
thanks
Florian
Posts: 81
I manage to solve (test4) by changing useralbum/classes/UserAlbumHelper.class
to