DEDECMS Modify the Message board template to achieve the same layout as other pages

Source: Internet
Author: User
used to Dedecms friends know, DEDECMS message board, question and answer module is not a member Space module support DEDECMS commonly used tags, if you use a message board or to modify the words is very inconvenient, the electric business circle to introduce a way to let these modules to support the label, But to understand a little knowledge of PHP to modify the best, before the modification, please note that you need to back up the original file, in order to modify the error. steps are as follows: first step: Open "/include/common.func.php", the file 5.6 version defaults to exist, 5.5 does not exist to build one. then 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;//Template file path
$DTP = new Partview ();
$DTP->settemplet ($tmpfile);
$DTP->display ();
The second step, open the template file of the message, the default is/templets/plus/guestbook.htm
with the following code to replace the reason for the call header code <?php
Pastertempletdiy ("default/head.htm");
Call Tail Code
Pastertempletdiy ("default/head.htm");
space and question and answer methods are used in the second step.

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