Dedecms message board header call modification method:
First: we need to open "/include/common. func. php". This file version 5.6 exists by default. If 5.5 does not exist, we can create 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. The Code is as follows:
Function pasterTempletDiy ($ path) {require_once (DEDEINC. "/arc. partview. class. php "); global $ pai_basedir, $ pai_templets_dir; $ tmpfile = $ pai_basedir. $ cmd_templets_dir. "/". $ path; // template file path $ dtp = new PartView (); $ dtp-> SetTemplet ($ tmpfile); $ dtp-> Display ();}
Step 2: Open the template file in the message book. The default value is/templets/plus/guestbook.htm.
Find "<body> ",
Use the following code to replace the original call header code:
<?phppasterTempletDiy("default/head.htm");
The above is what we hope to help you.
Articles you may be interested in
- DedeCMS (zhimeng) website Server Directory Security Settings Experience Sharing
- Zhimeng dede label call Summary
- How to Use constants defined by define in a program in a smarty Template
- How to remove the index. php string from the website url developed by codeIgniter
- Differences between window. navigate and window. location. href
- Solution to the DedeTag Engine Create File False error in dedeCMS
- Recommendation of three methods to enhance CMS Security
- Google blog search enables the ping function to enable real-time indexing of website content