DEDECMS Dream Message Board method of invoking website Head _php Tutorial

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

  • 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.