dedecms message board header call modification method:
Part 1: 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 with the following code:
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 guestbook template file. 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
That’s it, I hope it’s helpful to you.
Articles you may be interested in
- DedeCMS (Dreamweaver) website server directory security setting experience sharing
- Dreamweaver dede tag call summary
- How to use constants defined by define in the program in smarty templates
- How to remove the index.php string in the website URL developed by codeIgniter
- window.navigate and window.location.href Detailed explanation of usage differences
- Solution to the DedeTag Engine Create File False error in dedeCMS
- Three recommended methods to enhance the security of DreamWeaver CMS
- Google blog search to enable ping Function to realize real-time collection of website content
http://www.bkjia.com/PHPjc/764143.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/764143.htmlTechArticlededecms message board header call modification method: Part 1: 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, this...