Background Management customization

Source: Internet
Author: User
Tags php define

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.