Discuz! X plug-ins are rich, in discuz! The extension center has many plug-ins for free, but Google does not have a copy of discuz! X
A complete tutorial on plug-in development is also available several years ago. A post on the official forum is a development tutorial, but not complete. This is undoubtedly intended for disucz! X plug-ins have a threshold for cainiao like me. So I read "discuz!" two days ago! Technical Library, which contains disucz! X plug-in development documentation. As a result, I tried it myself and felt that the difficulty coefficient was not too large. So I plan to write a simple plug-in development process and share it with me for my intention to do disucz! This is a simple plug-in, not a perfect plug-in. It is only for teaching purposes. Sorry.
This plug-in is called the "message prompt box", which is similar to the advertisement box popped up in the lower right corner of the webpage. Let's start the development of this plug-in.
Step 1:
Open the config/config_global.php file, and add the following code at the end of the file to enable the plug-in designer mode.
$ _ Config ['inindevelop'] = 1; // $ _ config ['inindevelop'] = 2; as a result, the embedded points are displayed on the front-end pages.
Then you will see "design new plug-in" in "ins" in the background, click in, enter the plug-in information, and submit.
Return to the "plug-in list" and you will see the created plug-in. Click design. The following page is displayed:
Select the plug-in Language Pack. We will also talk about how to use the language pack later.
Currently, the creation of a plug-in is complete.
(For reprint, indicate the source: discuz! X
Examples of plug-in development)