We have made some research on the model machine of the discuz forum.
Discuz calls the template mechanism like this. For example, when we access the FAP. php file, the template file used by this file will be specified in this file.CodeAs follows:
Include template ('faq ');
Found. If it is not found by default, the system will find it from the default file.
It seems that I understand how to use the discuz template mechanism to do something for us.
1. Add an independent page. The style of this independent page must change with the style of the Forum.
Similar to the Help page of the Forum. FAP. php
This is done in two steps.
Step 1: Create a template page
Put test.htm in the template folder default.
Step 2: Create related PHP files and put them in the root directory.
The PHP file code is as follows:
<? PHP
Require_once './include/common. Inc. php ';
/* Here is the relevant PHP code. Used to display relevant information */
Include template ('formindex ');
?>