Remove "edit permissions" when user uploads zip file
smilem
Joined: 2009-02-25
Posts: 118 |
![]() |
Hello, The original thread is here, I could not reply to it for some reason. I have just update to gallery 2.3.2 and decided to add upload by zip option, since the javascript plugin is not update anymore and it has trouble on some systems etc. The problem is with permissions when user uploads a folder with other folders that become gallery subalbums. I can see the "edit album", "edit permissions", "reorder items" added to the available actions for any subalbums. I know I need to edit something to not display them, I would like to keep using the zip file upload feature. However if the user creates subalbums they are OK, only uploading zip file is a problem. Can anyone help me? |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Quote:
since the javascript plugin is not update anymore huh? what javascript plugin? have you tried http://codex.galleryproject.org/Gallery2:Modules:uploadifyuploadify? -s |
|
smilem
Joined: 2009-02-25
Posts: 118 |
![]() |
suprsidr wrote:
I was using this Upload Applet v1.0.11 http://codex.galleryproject.org/Gallery2:Modules:uploadapplet I tried to upload zip file and it simply uploaded zip file. Anyway it would be nice if I could fix this ZIP file permission problem too. Where I can specify what file types are uploadable? |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Quote:
I was using this Upload Applet v1.0.11 http://codex.galleryproject.org/Gallery2:Modules:uploadapplet that's java not javascript and is wildly outdated and always suffered from memory limitations Quote:
Where can I specify that "Have gallery create resizes at upload time." would be ON by default? you'll have to add checked="checked" to the /uploadify/templates/ItemAddUploadify.tpl template at the resizes checkbox input Quote:
Anyway it would be nice if I could fix this ZIP file permission problem too. any albums created are supposed to inherit the album permissions of the parent album Quote:
Where I can specify what file types are uploadable? http://codex.galleryproject.org/Gallery2:Modules:mime -s |
|
smilem
Joined: 2009-02-25
Posts: 118 |
![]() |
Quote:
any albums created are supposed to inherit the album permissions of the parent album yes I know that, but since the file is decompressed and then placed into users album the folders that are zipped together inside zip archive become subalbums, for some reason they have additional permissions. I can't see the aditional permissions when I login with my admin account and browse them, I did not check the database yet, but something is created differently. Permissions on created subalbums are not inherited. Also uploading zip file with the uploadify, does not decompress it. It simply uploads a zip file. Despite the archive plugin being active and working if you upload from browser as single file, why is this? |
|
smilem
Joined: 2009-02-25
Posts: 118 |
![]() |
Hmm, uploadify is based on java, so it doesn't work on any android based device |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Nope, no java there, just flash... still. -s |
|
smilem
Joined: 2009-02-25
Posts: 118 |
![]() |
Uploadify works on MAC and but does not work on Android phones like samsung s3 Since I can't post in the old thread is there a way to remove the "Delete album" from main user album, because if user deletes by accident the main album all photos are lost, and I need to recreate the account for the main album to be created with proper permissions. |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Try the following in gallery2/themes/your theme/templates/local/theme.tpl <- You may have to copy the original here {if $theme.item.parentId == 7 && !$user.isAdmin} {literal} <style> .gbLink-core_ItemAdmin-core_ItemDelete-album { display: none; } </style> {/literal} {/if}
where 7 is the id of the parent album to all user albums. Untested -s |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Quote:
Uploadify works on MAC and but does not work on Android phones like samsung s3 There is flashplayer for Android phones and tablets but not iOS devices. There is an uploadify update for newer devices, but it is not free and won't work on older devices. There is always a trade-off. -s |
|
smilem
Joined: 2009-02-25
Posts: 118 |
![]() |
I'm using matrix theme. see attached file, rename to tpl Looks like this: Quote:
{* But it made no change at all, I cleared template cache, and logged in with simple user account created earlier. Permissions for user gallery main folder (auto assigned): Group Permissions Everybody [rating] All access User Permissions test1 [core] Add sub-album Gallery main folder permisions: Group Permissions Everybody [core] View all versions User Permissions admin All access |
|
smilem
Joined: 2009-02-25
Posts: 118 |
![]() |
Hello, You were abroad last time I asked for some help with this problem, perhaps you are back now and could have a look. |
|
smilem
Joined: 2009-02-25
Posts: 118 |
![]() |
Hello, I still hope for a reply ? |
|