`
dcdc723
  • 浏览: 183502 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

discuz7.2 二次开发---------后台添加菜单

    博客分类:
  • PHP
阅读更多

menu.inc.php

 

 showmenu('test', array(
 array('menu_test', 'tests'),
 array('menu_ttt_merge', 'tests&operation=edit'),
));

 

main.inc.php

 

 showheader('test', 'tests');

并在JS中加入

<script type="text/JavaScript">
 var headers = new Array('index', 'global', 'style', 'forum', 'user', 'topic', 'extended', 'plugin', 'adv', 'tool'$ucadd,'test'); //test参数

在模板文件夹中的admincp.menu.lang.php中修改

 'header_test'=>'测试栏目',

    'menu_test'=>'测试一',
    'menu_ttt_merge'=>'测试二',

 

添加菜单参数并在admincp.php中的require_once DISCUZ_ROOT.'./admin/'.$action.'.inc.php';上一行包含参数文件(*.inc.php)。

在admin文件夹中创建tests.inc.php文件

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics