DedeCMS: how to call the website head on the zhimeng message board

Source: Internet
Author: User
Tags website server smarty template

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

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.