For example, let's start with the last page of the simplest website about us (insert a picture and add a few lines of text)
First of all two pages of the file (PHP page is responsible for parsing the HTM page, the two pages are currently empty)
mypage_about.php
<?php
Define (' Curscript ', ' test ');//define constants for the ID selector name of the body tag, identical to its own file name (without suffix), to enable the current highlight in the navigation bar.
Define (' Curmodule ', ' Index ');//define constants, class selector name for body tag, portal home for that name, can be replaced, optional
Require './source/class/class_core.php ';//introduction of System core files
$discuz = & Discuz_core::instance ();//The following code creates and initializes an object
$discuz->init ();
Loadcache (' Diytemplatename ');
$navtitle = ' Forum description ';//optional
$metakeywords = ' description ';//optional
$metadescription = ' Forum description ';//optional
Include template (' diy:portal/about ');//Call a single-page template file with the path to the current templates directory/portal/test.htm
?>
About.htm
<!--{Template common/header}--><!--Reference public Header--
<style id= "Diy_style" type= "Text/css" ></style>
<div class= "WP" >
<div id= "diy1" class= "area" >
</div><!--[/diy]--><!--a DIY area--
</div>
<script src= "Misc.php?mod=diyhelp&action=get&type=index&diy=yes&r={echo random (4)}" type= "text /javascript "></script>
<!--{Template common/footer}--><!--reference public bottom---
Put the two files in the specified directory (note that PHP calls the HTM path)
Then go to the site backstage, find the corresponding page, and then point to your new PHP file (if you specify # to indicate the home page) tick available, submit
This page can be displayed, as to beautify this page, such as adding pictures and text, in the HTM directly handwritten, such as I made a div save the picture, another div write text (note that the relative path of the picture is also your PHP file, not the HTM file, y, General PHP files are in the root directory, so the upload directory directly under the new folder and put pictures can be
Of course, this HTM page can also refer to the CSS file, this reference html+css tutorial can be
Discuz common big problems-how to customize individual pages