How to add independent pages in the discuz Forum

Source: Internet
Author: User

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 ');
?>

 

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.