https://www.icyphoenix.com/viewtopic.php?f=35&t=3937&p=27104#p27104 ----------------------------------- hal9000 Thu 03 Apr, 2008 18:42 Re: Unable To Edit Group Permissions With Too Many Forums. ----------------------------------- 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.