Index: phpBB/adm/style/permission_mask.html =================================================================== --- phpBB/adm/style/permission_mask.html (revision 10597) +++ phpBB/adm/style/permission_mask.html (working copy) @@ -15,7 +15,11 @@ // ]]> - +

{p_mask.NAME} [{p_mask.L_ACL_TYPE}]

@@ -41,6 +45,8 @@
+ +
{L_NO_ROLE_AVAILABLE}
Index: phpBB/adm/style/permissions.js =================================================================== --- phpBB/adm/style/permissions.js (revision 10597) +++ phpBB/adm/style/permissions.js (working copy) @@ -349,6 +349,7 @@ return; } + active_list(role_id); // Mark all options to no (unset) first... mark_options(target_id, 'u'); @@ -357,3 +358,16 @@ mark_one_option(target_id, r, (settings[r] == 1) ? 'y' : 'n'); } } +function active_list(role_id) +{ + var activated = document.getElementById(role_id); + + // Mark all options to no (unset) first... + var list = document.getElementById(role_id).parentNode.getElementsByTagName('li'); + + for (i = 0; i < list.length; i++) + { + list[i].className = (list[i].id == role_id) ? 'notice' : ''; + } + return false; +} \ No newline at end of file Index: phpBB/adm/style/tooltip.js =================================================================== --- phpBB/adm/style/tooltip.js (revision 10597) +++ phpBB/adm/style/tooltip.js (working copy) @@ -10,7 +10,7 @@ - further adjustements */ -var head_text, tooltip_mode; +var head_text, tooltip_mode, s_content_direction; /** * Enable tooltip replacements for links @@ -108,6 +108,52 @@ tooltip_mode = 'select'; } +function enable_tooltips_list(id, headline, sub_id, content_direction) +{ + var links, i, hold; + + s_content_direction = (content_direction) ? content_direction : 'rtl'; + head_text = headline; + + if (!document.getElementById || !document.getElementsByTagName) + { + return; + } + + hold = document.createElement('span'); + hold.id = '_tooltip_container'; + hold.setAttribute('id', '_tooltip_container'); + hold.style.position = 'absolute'; + + document.getElementsByTagName('body')[0].appendChild(hold); + + if (id == null) + { + links = document.getElementsByTagName('a'); + } + else + { + links = document.getElementById(id).getElementsByTagName('a'); + } + + for (i = 0; i < links.length; i++) + { + if (sub_id) + { + if (links[i].id.substr(0, sub_id.length) == sub_id) + { + prepare(links[i]); + } + } + else + { + prepare(links[i]); + } + } + + tooltip_mode = 'list'; +} + /** * Prepare elements to replace */ @@ -217,6 +263,12 @@ document.getElementById('_tooltip_container').style.top=(posy+20) + 'px'; document.getElementById('_tooltip_container').style.left=(posx-20) + 'px'; } + else if (tooltip_mode == 'list') + { + document.getElementById('_tooltip_container').style.top=(posy) + 'px'; + document.getElementById('_tooltip_container').style.left= (s_content_direction == 'rtl' ? (posx-205) : (posx+205)) + 'px'; + + } else { document.getElementById('_tooltip_container').style.top=(posy+30) + 'px'; Index: phpBB/includes/acp/auth.php =================================================================== --- phpBB/includes/acp/auth.php (revision 10597) +++ phpBB/includes/acp/auth.php (working copy) @@ -464,6 +464,7 @@ $current_role_id = (isset($cur_roles[$ug_id][$forum_id])) ? $cur_roles[$ug_id][$forum_id] : 0; $s_role_options = ''; + $s_role_list = ''; @reset($roles); while (list($role_id, $role_row) = each($roles)) @@ -473,11 +474,13 @@ $title = ($role_description) ? ' title="' . $role_description . '"' : ''; $s_role_options .= ''; + $s_role_list .= '
  • ' . $role_name . '
  • '; } if ($s_role_options) { $s_role_options = '' . $s_role_options; + $s_role_list = '
  • ' . $user->lang['NO_ROLE_ASSIGNED'] . '
  • ' . $s_role_list; } if (!$current_role_id && $mode != 'view') @@ -500,7 +503,9 @@ $template->assign_block_vars($tpl_pmask . '.' . $tpl_fmask, array( 'NAME' => $ug_names_ary[$ug_id], - 'S_ROLE_OPTIONS' => $s_role_options, + // We don't need it anymore ;) + // 'S_ROLE_OPTIONS' => $s_role_options, + 'S_ROLE_LIST' => $s_role_list, 'UG_ID' => $ug_id, 'S_CUSTOM' => $s_custom_permissions, 'FORUM_ID' => $forum_id)