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

Dedecms message board calls head.htm

(*-*)浩
(*-*)浩Original
2019-12-12 14:59:102138browse

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();
}

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

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

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

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!

Statement:
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