https://www.icyphoenix.com/viewtopic.php?f=35&t=4539 ----------------------------------- d16174l4n63l Thu 14 Aug, 2008 04:01 Setting Advanced Group Permissions FAILED ----------------------------------- I am curently using the following: Version of Icy Phoenix: 1.2.0.27 Version of phpBB: 2.0.23 Version of PHP: 4.4.8 Version of MySQL: 4.1.22-standard-log Here is my problem: Currently I have set my Forums and Sub-Forums for the most part private to allow a greater more advanced control. I then go to Groups >> Permissions >> ( selected group ) >> Advanced Mode. I make my changes and submit. I am then redirected to the Group Permissions Control and nothing has changed and the Group Permissions Control does not allow me to go back into any of he groups unless I use the left navigation, even then, the advanced mode permissions haven't changed. Yet I can set the simple permissions just fine and they take. However for my forums use I require specific permissions per group. So, where do I start to fix this problem. ----------------------------------- d16174l4n63l Tue 26 Aug, 2008 22:19 Re: Setting Advanced Group Permissions FAILED ----------------------------------- So I went so far as to patch up to 1.2.0.27C and again. I tried doing user specific advanced permissions as a work around and the group advanced permissions again and it all goes back to group permissions control page. Any suggestions I would appreciate. ----------------------------------- d16174l4n63l Thu 28 Aug, 2008 12:16 Re: Setting Advanced Group Permissions FAILED ----------------------------------- Alright, now I have found where the limitation of the problem is and I think this may be a bug as I have tested it on several installations on multiple servers. I am limited to three categories or forums, with at the most five sub forums each. After that it goes to the behavior described in the first post when trying to set private permissions to well any user, or group. I am using a stock, 1.2.0.27c fresh install now and teh behavior hasn't changed. I've checked my files over and over, checked the database, cleared the cache, searched these forums for hours upon end, hell I even spent time with my provider. I've been talking to myself for about fourteen days now, and I hope that my reporting hasn't gone to waste. With my forum I require multiple category's / forum's with some sections having Sub-Forums. I am fairly experienced at modding, and reading code, I just cannot seem to find the problem. Some please help me fix this. ----------------------------------- novice programmer Thu 28 Aug, 2008 15:09 Re: Setting Advanced Group Permissions FAILED ----------------------------------- I will tag it as bug... I cannot provide you help. Can you paste the file code (using spoilers), please? ----------------------------------- d16174l4n63l Thu 28 Aug, 2008 21:37 Re: Setting Advanced Group Permissions FAILED ----------------------------------- Everything is stock latest IP. No modifications, just plain old Icy Phoenix. though when I try to post you teh code it says access to the address is forbidden to me. ( UPDATE ) Under the thread [url=http://www.icyphoenix.com/viewtopic.php?t=3937][color=#0026ff]Unable To Edit Group Permissions With Too Many Forums[/color] by [color=#1900ff]hal9000[/color] under the [color=#1900ff]General Support Section[/color]. I used his "display" code to see what is going on in the process of updating private group permissions. I am apparently coming up with the same results, the hash stops with no submit at the end. ( UPDATE 13:15 EST 2008-08-28 ) taking a chance I looked a the above linked thread. [url=http://www.icyphoenix.com/viewtopic.php?t=3937][color=#0026ff]Unable To Edit Group Permissions With Too Many Forums[/color] by [color=#1900ff]hal9000[/color] under the [color=#1900ff]General Support Section[/color]. I modded the code as he directed and now it works past my normal mark. I was under teh impression that the code was already in 1.2.0.27C however it appears not. If Hal9000 is busy I can give the clean code and package to add in. ----------------------------------- Mighty Gorgon Fri 29 Aug, 2008 23:00 Re: BUG - Setting Advanced Group Permissions FAILED ----------------------------------- I didn't add this code to 027c because I couldn't test it completely. Can you confirm that this code solved all your problems? I will try to have a further look when I have time. ----------------------------------- d16174l4n63l Sat 21 Mar, 2009 17:58 Re: Setting Advanced Group Permissions FAILED ----------------------------------- I can confirm that it fixes the issue. I tested it thoroughly, anyone else like to confirm? ----------------------------------- novice programmer Sat 21 Mar, 2009 19:32 Re: BUG - Setting Advanced Group Permissions FAILED ----------------------------------- With what fixes? [code syntax=php]//It is so old...[/code] ----------------------------------- d16174l4n63l Sat 21 Mar, 2009 19:47 Re: Setting Advanced Group Permissions FAILED ----------------------------------- hal900's previously linked fix corrected the problem with the advanced permissions problem. When you have too many forums, the advanced permissions for forums doesn't hold it's values ( private, reg, mod, admin). instead you get sent back to the forum permission selection screen. Using his fix from the thread below, instead of trying to do it all at once, it only updates the changes made to the permissions and fixes the problem. [url=http://www.icyphoenix.com/download.php?id=936]del_unchanged_selects.js [url=http://www.icyphoenix.com/viewtopic.php?f=2&t=3937]Unable To Edit Group Permissions With Too Many Forums by hal9000 under the General Support Section. [spoiler][quote user="hal9000" post="27104"]Ok, I think I got it working, so here we go with the modifications. 1) First of all upload the attached [b]"del_unchanged_selects.js"[/b] file to [b]"/templates/common/js"[/b]. This is the content of that file: [code]var select_id = new Array(); var select_value = new Array(); function remove_object(id) { e=document.getElementById(id); e.parentNode.removeChild(e); } function save_initial_values() { my_form=document.getElementById('acl_form'); el=my_form.elements; for (i=0; isql_query($sql)) ) { message_die(GENERAL_ERROR, "Couldn't obtain user/group permissions", "", __LINE__, __FILE__, $sql); } if ($row=$db->sql_fetchrow($result)) { for ($k=0; $k < count($forum_auth_fields); $k++) { $change_acl_list[$forum_id][$forum_auth_fields[$k]]=$row[$forum_auth_fields[$k]]; } } $used_forums[$forum_id]=1; } # #-----[ FIND ]------------------------------------------ # ( isset($auth_access[$forum_id]['auth_mod']) && $change_mod_list[$forum_id] != $auth_access[$forum_id]['auth_mod'] ) || # #-----[ BEFORE, ADD ]------------------------------------------ # isset($change_mod_list[$forum_id]) && ( # #-----[ FIND ]------------------------------------------ # ( !isset($auth_access[$forum_id]['auth_mod']) && !empty($change_mod_list[$forum_id]) ) # #-----[ AFTER, ADD ]------------------------------------------ # ) # #-----[ FIND ]------------------------------------------ # $optionlist_acl = ''; # #-----[ FIND ]------------------------------------------ # $optionlist_acl_adv[$forum_id][$k] = ''; # #-----[ FIND ]------------------------------------------ # $optionlist_mod = ''; [/code] 3) Apply the changes to the file [b]"auth_ug_body.tpl"[/b]: [code]# #-----[ OPEN ]------------------------------------------ # templates/common/acp/auth_ug_body.tpl # #-----[ FIND ]------------------------------------------ #
# #-----[ REPLACE WITH ]------------------------------------------ # # #-----[ FIND ]------------------------------------------ #
# #-----[ AFTER, ADD ]------------------------------------------ # [/code] And that’s all. Now a large amount of forums only will cause the problem if too many of values are changed at the same time, what is less probable to happen.[/quote][/spoiler] ----------------------------------- novice programmer Sat 21 Mar, 2009 20:26 Re: BUG - Setting Advanced Group Permissions FAILED ----------------------------------- How many forums are we talking around? I am about to move it to bugs section, but in order to have all info, I will await for the it. ----------------------------------- d16174l4n63l Sun 22 Mar, 2009 17:38 Re: Setting Advanced Group Permissions FAILED ----------------------------------- My highest count was 5 forums, before applying this fix. ----------------------------------- Mighty Gorgon Wed 01 Apr, 2009 12:36 Re: BUG - Setting Advanced Group Permissions FAILED ----------------------------------- Thanks for reporting, I should have integrated this as well... as soon as the new RC is out, can you please test it for me and confirm that it is working fine? Another suggestion for those who are having problems with it... please use FireFox, as it as an higher _POST var capability than other browsers.