The single-page PHP file is stored in the Forum root directory. Note: News is the template file name without the. htm extension. the template file is stored in the forum directory under the default style directory. 1. create a single-page php page, applicable to DIY and common single-page? Phpdefine (CURSCRIPT, archy); // A class ID of the body: require./source/cl. the php file on a single page is stored in the Forum root directory.
Note:: News is the template file name without the. htm extension. the template file is stored in the forum directory under the default style directory.
I,
Create a single-page php page, Applicable to DIY and common single-page
Define ('curscript', 'Archie'); // A class ID of the body
Require './source/class/class_core.php'; // introduce the system core file
$
Discuz= &
Discuz_ Core: instance (); // The following code creates and initializes an object.
$ Discuz-> init ();
Loadcache ('didtemplatename'); // DIY needs to load the cache
$ Navtitle = 'single-page title ';
$ Metakeywords = 'single-page keyword 1, single-page keyword 2 ';
$ Metadescription = 'single-page description ';
Include template ('DIY: forum/News'); // call the single-page template file
?>
II,
Create a single-page template file news.htm
1. Code of the template file on a single page of common content:
$ _ G [setting] [bbname]
»
$ _ G [setting] [bbname]
»
$ Navtitle
Here is the content area of a single page.
The DIY code is, pay attention to the number when adding: