Home  >  Article  >  Backend Development  >  How to call the website head in dedeCMS DreamWeaver message board_PHP tutorial

How to call the website head in dedeCMS DreamWeaver message board_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:31:061246browse

dedecms message board header call modification method:

Part 1: We need to open "/include/common.func.php". This file exists by default in version 5.6. If it does not exist in 5.5, we can create one. The function of this file is 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;//模版文件的路径
	$dtp=new PartView();
	$dtp->SetTemplet($tmpfile);
	$dtp->Display();
}

The second step is to open the guestbook template file. The default is /templets/plus/guestbook.htm

Find "",

Replace the original calling header code with the following code

<?php
pasterTempletDiy("default/head.htm");

That’s it, I hope it’s helpful to you.

Articles you may be interested in

  • DedeCMS (Dreamweaver) website server directory security setting experience sharing
  • Dreamweaver dede tag call summary
  • How to use constants defined by define in the program in smarty templates
  • How to remove the index.php string in the website URL developed by codeIgniter
  • window.navigate and window.location.href Detailed explanation of usage differences
  • Solution to the DedeTag Engine Create File False error in dedeCMS
  • Three recommended methods to enhance the security of DreamWeaver CMS
  • Google blog search to enable ping Function to realize real-time collection of website content

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/764143.htmlTechArticlededecms message board header call modification method: Part 1: We need to open "/include/common.func. php", this file exists by default in version 5.6. If it does not exist in 5.5, we can create one, this...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn