|
Page 2 of 3
|
krisbfunk 
Joined: December 2006
Posts: 95
Location:
|
 Re: Standard Unrelated Gallery In Personal Gallerys
that's great, Artie, thanks.
|
#16 Sun 14 Jan, 2007 04:11 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
krisbfunk 
Joined: December 2006
Posts: 95
Location:
|
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
is it possible that this code could cause permission problems with new users?
since doing the above edits, new users now cannot delete their own photos in the main gallery, but are able to do it in their sub category "unrelated".. regardless of permission changes.
|
#17 Mon 29 Jan, 2007 21:29 |
|
Artie 
Joined: January 2007
Posts: 833
Location:  Lone Star State
|
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
Hmmmm ... I will check into this
|
#18 Mon 29 Jan, 2007 22:21 |
|
Artie 
Joined: January 2007
Posts: 833
Location:  Lone Star State
|
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
is it possible that this code could cause permission problems with new users?
since doing the above edits, new users now cannot delete their own photos in the main gallery, but are able to do it in their sub category "unrelated".. regardless of permission changes.
It should not cause any issues with the main gallery, but could with the sub cat (Unrelated) ... I'll correct this soon.
In the meantime review the thread linked below, it may be some of your problem
http://www.icyphoenix.com/viewtopic.php?t=791
|
#19 Tue 30 Jan, 2007 02:11 |
|
krisbfunk 
Joined: December 2006
Posts: 95
Location:
|
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
Thanks Artie, but i already completed that update a while back and am aware of what it's saying.
settings:
users cannot create subcategories
users can create their own gallery
users can moderate their own galleries
config:
Who can view personal galleries by default: Private
group permissions:
usergroup #4: everything selected.. any modification to this at any time does nothing to the below settings
what new users in usergroup#4 see: (since this mod)
usergroups main personal gallery wrote:
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
usergroups UNRELATED personal gallery wrote:
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
I also should add this happens to every new user in any usergroup.
|
#20 Tue 30 Jan, 2007 13:42 |
|
Artie 
Joined: January 2007
Posts: 833
Location:  Lone Star State
|
 Re: Standard Unrelated Gallery In Personal Gallerys
kris*, I think what is happening is that you have the group checked off as Is Moderator and that is pretty much the same as checking all the permission checkboxes. If you unchecked Is Moderator I think you will see the effect you desire.
On another note: The code (see below) given in an above post is incorrect and should be reversed.
This will still show the Delete link for the sub-cat, but will only link to an unathorized message.
In code you added (above)
FIND (2nd instance of)
REPLACE WITH
OPEN language_album_main.php
FIND
$lang['No_Personal_Category_admin'] = 'You are not allowed to manage your personal gallery categories';
AFTER ADD
$lang['No_Personal_Category_delete'] = 'You are not allowed to delete this personal gallery category';
OPEN album_personal_cat_admin.php
FIND
$sql = "SELECT cat_id, cat_title, cat_order
FROM ". ALBUM_CAT_TABLE ."
ORDER BY cat_order ASC";
REPLACE WITH
$sql = "SELECT cat_id, cat_title, cat_order, cat_delete_level
FROM ". ALBUM_CAT_TABLE ."
ORDER BY cat_order ASC";
FIND
if( $cat_found == FALSE )
{
message_die(GENERAL_ERROR, 'The requested category is not existed');
}
AFTER ADD
if( ($thiscat['cat_delete_level'] == 1) && ($userdata['user_level'] != ADMIN))
{
include_once($phpbb_root_path . 'includes/page_header.'.$phpEx);
$message = $lang['No_Personal_Category_delete'];
$message .= "<br /><br />" . sprintf($lang['Click_return_album_index'], '<a href="' . append_sid(album_append_uid('album.' . $phpEx)) . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
|
#21 Tue 30 Jan, 2007 21:27 |
|
Artie 
Joined: January 2007
Posts: 833
Location:  Lone Star State
|
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
|
#22 Wed 31 Jan, 2007 01:07 |
|
Bullet
Joined: January 2007
Posts: 34
|
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
Artie.
Should all the old code be removed and then enter the new updated mod?
|
#23 Wed 31 Jan, 2007 02:00 |
|
krisbfunk 
Joined: December 2006
Posts: 95
Location:
|
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
thanks, i updated the code.
as for the issue i'm having, the moderator box is not checked off for that usergroup.
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
(this is only happening with new users since the unrelated mod)
|
#24 Wed 31 Jan, 2007 06:45 |
|
Artie 
Joined: January 2007
Posts: 833
Location:  Lone Star State
|
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
Artie.
Should all the old code be removed and then enter the new updated mod?
Yes, I think that would be best.
You should also set cat_delete_level to 3 for all the Unrelated subcats you now have.
kris*, the only thing this mod could have done would have been ... You cannot delete your photos and comments in this category ... for the subcat Unrelated and not the main category. ... the updated mod will correct this on future galleries.
You are aware that Who can view personal galleries by default must be set to Private for any of those permissions to be active ?
|
#25 Thu 01 Feb, 2007 00:25 |
|
krisbfunk 
Joined: December 2006
Posts: 95
Location:
|
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
Artie.
Should all the old code be removed and then enter the new updated mod?
Yes, I think that would be best.
You should also set cat_delete_level to 3 for all the Unrelated subcats you now have.
kris*, the only thing this mod could have done would have been ... You cannot delete your photos and comments in this category ... for the subcat Unrelated and not the main category. ... the updated mod will correct this on future galleries.
You are aware that Who can view personal galleries by default must be set to Private for any of those permissions to be active ?
ok, i guess i should open a new topic then.. yes, i am aware Who can view personal galleries by default must be set to Private for the settings to take affect, and it is.
New users cannot delete photos in their main gallery, but they can delete photos in their Unrelated gallery. I have reset the permissions a number of times to even allow full access/no access and with and without moderator ability in the config. personal gallery delete permissions are not working on new users in any usergroup.
the only work-around i have for my users now is to have them move photos to their unrelated gallery and delete them from there.
*edit*
ok, i logged in as admin and deleted a new users personal gallery (both unrelated and main personal gallery). Then I logged in under that new user and created a gallery by clicking the create a personal gallery link. Now the new user can delete photos from both galleries. I have to do this for every new user.
When new accounts are created, the main gallery and unrelated is already created for them when they click their personal gallery link, perhaps this is part of the issue? It never used to be like this, new users previously had to click "create a personal gallery".
Edited by krisbfunk, Thu 01 Feb, 2007 01:33: updated testing deleting gallery |
#26 Thu 01 Feb, 2007 01:15 |
|
Bullet
Joined: January 2007
Posts: 34
|
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
Artie,
Do you have all the previous code edits that u have PM me so I can remove them.
|
#27 Thu 01 Feb, 2007 02:48 |
|
Artie 
Joined: January 2007
Posts: 833
Location:  Lone Star State
|
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
Artie,
Do you have all the previous code edits that u have PM me so I can remove them.
Most of the code is lined out above, the other is in album_mod/album_hierarchy_sql.php
Just replace what you have between this (below) with the code listed in the mod update.
// BEGIN CREATE PERSONAL GALLERY SUB CAT
// END CREATE PERSONAL GALLERY SUB CAT
When new accounts are created, the main gallery and unrelated is already created for them when they click their personal gallery link, perhaps this is part of the issue? It never used to be like this, new users previously had to click "create a personal gallery".
You have other problems, I would think.
How did that happen?
If ACP is set to allow users to create their own gallery they must be created this way.
|
#28 Thu 01 Feb, 2007 03:43 |
|
Bullet
Joined: January 2007
Posts: 34
|
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
Works great now! Thanks again!
|
#29 Thu 01 Feb, 2007 08:13 |
|
krisbfunk 
Joined: December 2006
Posts: 95
Location:
|
 Re: SOLVED - Standard Unrelated Gallery In Personal Gallerys
Artie wrote:
When new accounts are created, the main gallery and unrelated is already created for them when they click their personal gallery link, perhaps this is part of the issue? It never used to be like this, new users previously had to click "create a personal gallery".
You have other problems, I would think.
How did that happen?
If ACP is set to allow users to create their own gallery they must be created this way.
ok.. i'm not sure how it happened? ACP is set so to 'Private' for 'allowed to set personal gallery for users' and all usergroups are checked off in the personal galler permissions. The pre-existing galleries do not appear in the list of member galleries until someone has uploaded a photo, they do not get the link to create a gallery, it simply exists (unless i delete it, then they get the link).
|
#30 Fri 02 Feb, 2007 17:10 |
|
|
Page 2 of 3
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
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
|
|
|
|