Home >Backend Development >PHP Tutorial >Discuz x2.5 single page production tutorial
DiscuzThe production of a single page is actually very simple. There have been many versions of single page production tutorials before. Today we mainly talk about the production of Discuz x2.5 single page, including single page DIY, tab page production, etc. A single page includes the php file of the single page and the template (.htm) file of the single page, such as: news.php, news.htm. Viewing new posts is made using a single page, demonstration effect: http://bbs.it-home.org/news.php The picture-less streamlined version of the programmer forum is also similar to http://bbs.it-home.org/sitemap.php Let’s start analyzing the code of a single page: 1. Creation of a single-page php page, the code suitable for DIY and ordinary single-page is as follows:
Note: news is the name of the template file. There is no need to add the .htm extension. The template file is stored in the forum directory under the default style directory. 2. Creation of single-page template file news.htm. 1. Template file code for a single page of ordinary content:
|