DedeCMS Zhimeng message board calls website head _ PHP Tutorial

Source: Internet
Author: User
Tags website server smarty template
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.