Discuz Background Module Development process

Source: Internet
Author: User

First, source/admincp/menu/under the New menu file menus (without affecting the original base) named: menu_managerment.php
Internal code, the main definition of the top menu: $topmenu [' managerment '] = ';, left menu: $menu [' managerment '] [] = Array (' Menu_managerment_index ', ' Managerment_index '), left menu Menu_managerment_index = Action=managerment&operation=index
Second, the admin.php file to the $admincp_actions_normal array to add a permission value, you can have access to the value of the name is: managerment;
Three, source/admincp/under a new module file: admincp_managerment.php, built-in code:

if (! defined (' In_discuz ') | | ! defined (' IN_ADMINCP ')) {exit(' Access Denied ');}

This file can be self-defined PHP logic code, can be executed according to Operation, is the main logic file module;
Iv. language Pack, new menu name language file: lang_admincp_managerment.php, Internal code:

$extend _lang Array (' menu_managerment_index ' = ' home ',); $lang [' header_managerment '] = ' befound management '; // top Menu Text $GLOBALS [' Admincp_actions_normal '] [] = ' managerment ';

Discuz Background Module Development process

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.