Icy Phoenix

     
 


This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post FAP SUPPORT - Personal Gallery Permissions Problem For New Members 
 
created new topic on this as requested by Artie.

Problem: Delete permissions on new members (in any usergroup) are not working, regardless of settings per usergroup in the personal gallery permissions.

FAP mods installed: 'unrelated' gallery

    Related things that may point to the problem:
  • Permissions are fine on the one subcat (Unrelated), but not the main personal gallery
  • When a new user clicks on the link for their personal gallery, it is already created for them, even the 'unrelated' folder. They do not have the link to create their own gallery. If an admin deletes this pre-existing personal gallery, the user is then able to click the link to create one and delete permission problems are corrected.


settings:
users cannot create subcategories
users can have 1 sub category
users can create their own gallery
users can moderate their own galleries

config:
Who can view personal galleries by default: Private
Who can create personal galleries: Private

personal gallery group permissions:
usergroups: everything selected (upload, delete, comment, rate, moderator, etc).. any modification to this at any time does nothing to the below settings unless i delete the pre-existing gallery and have them click the link to create one.

what new users in usergroups see at the bottom of their gallery:

main personal gallery
Quote:

You can upload new photos in this category
You can post comments to photos in this category
You can edit your photos and comments in this category
You cannot delete your photos and comments in this category

You can moderate this category


UNRELATED personal gallery
Quote:

You can upload new photos in this category
You can post comments to photos in this category
You can edit your photos and comments in this category
You can delete your photos and comments in this category

You can moderate this category

 



 
krisbfunkSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Personal Gallery Permissions Problem For New Members 
 
krisbfunk wrote: [View Post]


settings:
users can create their own gallery

config:
Who can create personal galleries: Private

Say what  

krisbfunk wrote: [View Post]

personal gallery group permissions:
usergroups: everything selected (upload, delete, comment, rate, moderator, etc).. any modification to this at any time does nothing to the below settings unless i delete the pre-existing gallery and have them click the link to create one.

You stated in your other post that Is Moderator was not selected for the group that was having problems.
If you have IS Moderator checked it doesn't matter how you have the others (upload, delete, comment, rate,  etc), they are considered checked by default.

I think your problems may stem from the personal galleries being created on their own.

Are you saying that as a new user registers, that his personal gallery is listed in the list of all personal galleries?

OR

Are you saying that as users (without a personal gallery) click on the Your Personal Gallery link, their gallery is already created?
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Personal Gallery Permissions Problem For New Members 
 
Artie wrote: [View Post]
krisbfunk wrote: [View Post]


settings:
users can create their own gallery

config:
Who can create personal galleries: Private

Say what  


sorry about that, i was only trying to say "Allowed to create personal gallery for users" is set to PRIVATE


Artie wrote: [View Post]

krisbfunk wrote: [View Post]

personal gallery group permissions:
usergroups: everything selected (upload, delete, comment, rate, moderator, etc).. any modification to this at any time does nothing to the below settings unless i delete the pre-existing gallery and have them click the link to create one.

You stated in your other post that Is Moderator was not selected for the group that was having problems.
If you have IS Moderator checked it doesn't matter how you have the others (upload, delete, comment, rate,  etc), they are considered checked by default.


I have tried it with the option on and off, and still do not have the "delete" option available for new users in their main personal gallery, only in the 'unrelated' folder. (until i actually delete the new users whole personal gallery and have them click the link to create it themselves). Currently, I have the moderator option off.

Artie wrote: [View Post]

I think your problems may stem from the personal galleries being created on their own.

Are you saying that as a new user registers, that his personal gallery is listed in the list of all personal galleries?

OR

Are you saying that as users (without a personal gallery) click on the Your Personal Gallery link, their gallery is already created?

Neither, when a new user registers their gallery is not in the list until they actually upload an image, and they do not get the standard:
Quote:
The personal gallery of testacct has not been created

Create Personal Gallery
when they go into the 'Your Personal Gallery', they simply see 'No Photos', and can see their 'unrelated' sub category.
 



 
krisbfunkSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Personal Gallery Permissions Problem For New Members 
 
However you have the ACP set, someone should have to click Create Personal Gallery ... Admin, Mod, or User
It should not create itself ...... strange.

If you want to send me these files, I'll take a peek and see if I can find anything.


album.php
album_personal_cat_admin.php
album_personal_index.php
album_mod/album_personal.php
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Personal Gallery Permissions Problem For New Members 
 
sent the files via zip attachment in PM
 



 
krisbfunkSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Personal Gallery Permissions Problem For New Members 
 
Didn't notice anything in these file that would cause this problem.

Would like to look at 3 more

album_functions.php
album_hierarchy_functions.php
album_hierarchy_sql.php
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Personal Gallery Permissions Problem For New Members 
 
sent the 2nd round of files via zip attachment in PM
 



 
krisbfunkSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Personal Gallery Permissions Problem For New Members 
 
I didn't see any problem with those files either ........ very strange.

Take a look in album_upload.php for album_create_personal_gallery .... it should be there 2 times and it should be commented out ..make sure of this.

I am stumped.  
FAP 1.4.1 is soon to be released, my suggestion would be to update and test as you reinstall your mods (one at a time).
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Personal Gallery Permissions Problem For New Members 
 
here are the only instances of album_create_personal_gallery in album_upload.php

Code: [Download] [Hide] [Select]
// check if it's a 'fake' category id, which look like this -<user_id> (a minus sign followed by the userid)
if( isset($_POST['pic_title']) ) // is it submitted?
{
    if (!album_validate_jumpbox_selection($cat_id))
    {
        message_die(GENERAL_ERROR, $lang['No_valid_category_selected']);
    }

    if ($cat_id < 0)
    {
        message_die(GENERAL_ERROR, $lang['No_valid_category_selected']);
        /*
        $album_user_id = abs($cat_id); // convert the negative 'cat_id' into to a user id
        if ($album_user_id > 0 && album_check_user_exists($album_user_id))
        {
            // NOTE : if we want to create personal galleries the upload setting ($album_config['personal_gallery']) as set in the ACP
            //        we should change the next line so it looks like this :
            //
            //album_create_personal_gallery($album_upload_user_id, $album_config['personal_gallery_view'], $album_config['personal_gallery']);
            //
            // this will how ever make it possible for all users to upload to other persons personal galleries as default.
            // So the best solution would be this which sets the upload permission to private which in this case means a moderator or the
            // owner of the gallery and of cause the admin :)
            album_create_personal_gallery($album_user_id, $album_config['personal_gallery_view'], ALBUM_PRIVATE);
            $cat_id = album_get_personal_root_id($album_user_id);
        }
        */
    }
}


thanks for looking into it Artie, I'll do the update when it comes out and see how that goes.
 



 
krisbfunkSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Personal Gallery Permissions Problem For New Members 
 
That look fine too.
Sorry I wasn't much help.

Update us on how/when the upgrade goes ... I'm very curious  
 



 
ArtieSend private message  
Back to topPage bottom
This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron