2

For those of you that have dealt with EGL (Elite Gaming Ladders) Tournament & Ladders script... I'm having a problem figuring out how to add new group permissions for customized mods I've made. I've created a new type of "General Rules" mod that I would like to store the permission as shown:

case "select_genrules";
    if($group['genrules_manager']=="yes"){
        include("./includes/rules.php");
        select_genrules();
    }else{
        return warning("<b>" . LANG_WARNING_NO_PERMISSIONS_TO_ACCESS_PAGE . " </b>");
    }
    break;

where "genrules_manager" formatted the same as all of the others is added to the group_permissions set. I added it to the groups_permissions table and it actually does show in the list of permissions in the ACP under the category "Misc" but I would like to add "Lang" so that it doesn't just say "genrules_manager" etc... Any help as to how to access/modify those keys in the admincp/includes/addmembergroup.php and admincp/includes/managemembergroup.php would be greatly appreciated!

4

1 回答 1

1

这实际上是在 groups.php 中的 addmembergroup 和 editmembergroup 函数下找到的。您将需要添加一个链接到您在 admincp/language/english.php 中编写的“lang”的键,如下所示:

if($key=='genrules_manager'){$descr='' . LANG_GRO_PERMISSIONS_DESCR_GENRULES_MANAGER . ''; $site .= group_radio($key, $value, $descr);}

必须在这两个功能中完成,以便您在添加和编辑时看到。只需将其与您想要的任何类别下的键内联...

于 2013-06-17T21:45:13.777 回答