DEDECMS Message Board Head Call modification method:
First: We need to open "/include/common.func.php", this file version 5.6 default, 5.5 does not exist we can build one, this file function is used 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;//The path to the template file $dtp=new Partview (); $DTP->settemplet ($tmpfile); $dtp->display ();
The second step, open the message of the template file, the default is/templets/plus/guestbook.htm
Find "",
Replace the original calling header code with the following code
The above is, I hope to help you.
Articles you may be interested in
- Dedecms (Dream Weaving) website Server directory security Settings experience sharing
- Weave Dream Dede Tag Call Summary
- How constants defined by define in the program are used in the Smarty template
- How to remove the index.php string from the URL of the website CodeIgniter developed
- Window.navigate and window.location.href the use of different explanations
- Dedecms tips for Dedetag Engine Create File false Error resolution
- Three ways to enhance the safety of woven dream CMS
- Google Blog Search enable ping to achieve real-time site content ingest
http://www.bkjia.com/PHPjc/764143.html www.bkjia.com true http://www.bkjia.com/PHPjc/764143.html techarticle DEDECMS Message Board Head Call modification method: first: We need to open "/include/common.func.php", this file 5.6 version of the default exists, 5.5 of the non-existent we can build one, this ...