DedeCMS sends a message board to call the website head. Dedecms message board header call modification method: Part 1: Open includecommon. func. php. This File Version 5.6 exists by default. if it does not exist in version 5.5, we can create one. The dedecms message board header calls the 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"",
Use the following code to replace the original call header code:
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
The modify method is called in the response header: Part 1: We need to open "/include/common. func. php ", this file version 5.6 exists by default. if it does not exist in version 5.5, we can create one. this...