Home > CMS Tutorial > DEDECMS > Dedecms message board calls head.htm

Dedecms message board calls head.htm

(*-*)浩
Release: 2019-12-12 14:59:10
Original
2202 people have browsed it

Dedecms message board calls head.htm

dedecms message board header calls the modification method:

The first step: we need to open "/include/common.func .php", this file exists by default in version 5.6. If it does not exist in 5.5, we can create one. The function of this file is to parse the template. ##You can also open the "include/extend.func.php" file.

Add a function to the file, the code is as follows:

function pasterTempletDiy($path)
{
require_once(DEDEINC."/arc.partview.class.php");
global$cfg_basedir,$cfg_templets_dir;
$tmpfile = $cfg_basedir.$cfg_templets_dir."/".$path;//模版文件的路径
$dtp = new PartView();
$dtp->SetTemplet($tmpfile);
$dtp->Display();
}
Copy after login

The second step is to open the template file of the guestbook, the default is /templets/ plus/guestbook.htm

Find ""Replace the original calling header code with the following code

<?php
  pasterTempletDiy("default/head.htm");
?>
Copy after login

The above is the detailed content of Dedecms message board calls head.htm. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template