Http://bbs.zb7.com/thread-2310-1-1.html
Now Discuz forum more and more hot, so discuz! two times how to add a backend management module? Let's share the following:
Documents related to:
admincp.php Background Entry file
main.inc.php define the Background interface template display file
admincp.menu.lang.php Background Management language files
menu.inc.php background Interface Menu definition file
1. Declare in variable $action
admincp.php 86 lines Add ' menu_class_list ', ' menu_teacher_list ':
In_array ($action, Array (' Home ', ' Settings ', ' Members ', ' profilefields ', ' admingroups ', ' usergroups ', ' ranks ', ' forums ') , ' threadtypes ', ' Threads ', ' moderate ', ' attach ', ' smilies ', ' recyclebin ', ' prune ', ' styles ', ' plugins ', ' tasks ', ' magics ' ', ' medals ', ' Google ', ' Qihoo ', ' video ', ' announce ', ' FAQs ', ' EC ', ' tradelog ', ' creditwizard ', ' Jswizard ', ' project ', ' Coun Ter ', ' misc ', ' adv ', ' Insenz ', ' logs ', ' Tools ', ' checktools ', ' Search ', ' upgrade ', ' menu_class_list ', ' menu_teacher_list ' ‘);
Copy Code
2, define the default display of the custom top menu, main.inc.php 55 rows to join
Add top Menu
Showheader (' Family ', ' menu_class_list ');
Copy Code
3, define the language file of the custom menu, admincp.menu.lang.php 24 line to join
Add top Menu
' header_family ' = ' Home Platform ',
' Menu_class_list ' = ' course ',
' Menu_teacher_list ' = ' teacher ',
Copy Code
4, define the sidebar menu, menu.inc.php 96 line to join
Add top Menu
ShowMenu (' Family ', array (
Array (' Menu_class_list ', ' Members '),
Array (' menu_teacher_list ', ' adv '),
));
//------
Copy Code
5, because Discuz background display through the JS call display, so must join in main.inc.php111 line
var headers = new Array (' Index ', ' global ', ' style ', ' Forum ', ' user ', ' topic ', ' extended ', ' adv ', ' family ', ' tool ' $ucadd);
Copy Code
6. Define the program files in the/admin file
menu_class_list.inc.php
menu_teacher_list.inc.php
http://xuliewei.cn/archives/3024
http://www.huoyue.org/discuz-admin-button?replytocom=579
Http://jingyan.baidu.com/article/ff42efa91c05bfc19e220231.html
Http://zhidao.baidu.com/link?url= Ym4f8ukoeiylacake9jfavryetaxlhyctda1jqq-fthnmilqrsyylo9l7bycvlhchhhbryctpjg10lzwscj_-o_clqrmbgfm_gde3jfdimq
Http://bbs.zb7.com/discuz/dx25/plug/construct/construct_admin.htm
Background Management customization