Introduction: This is a detailed page for the dedecms module to support system tags. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 334796 'rolling = 'no'>
Step 1: Open "/include/common. func. php". The file version 5.6 exists by default, and the file 5.5 does not exist.
Then add a function to the file,CodeAs follows:
Function pastertempletdiy ($ PATH)
{
Require_once (dedeinc. "/arc. partview. Class. php ");
Global $ pai_basedir, $ pai_templets_dir;
$ Tmpfile = $ pai_basedir. $ pai_templets_dir. "/". $ path; // path of the template file
$ DTP = new partview ();
$ DTP-> settemplet ($ tmpfile );
$ DTP-> display ();
}
// Liehuo and net let the hateful collection die!
Step 2: Open the template file in the message book. The default value is/templets/plus/guestbook.htm.
Use the following code to replace the calling header code
<? PHP
Pastertempletdiy ("default/head.htm ");
?>
More articles on "dedecms module supports system tags"
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/334796.html pageno: 10.