Table of Contents
Articles you may be interested in
Home Backend Development PHP Tutorial 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

Jul 13, 2016 am 10:31 AM
dedecms message board dream weaving transfer

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();
}
Copy after login

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");
Copy after login

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 of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How matlab calls m files-matlab method of calling m files How matlab calls m files-matlab method of calling m files Mar 04, 2024 pm 01:49 PM

Many friends still don’t know how to call m files in matlab, so the editor below explains how to call m files in matlab. If you are in need, please take a look. I believe it will be helpful to everyone. 1. First open the matlab software and click "Open" in the main interface, as shown in the figure below. 2. Then select an m file that needs to be opened and select Open, as shown in the figure below. 3. Then look at the file name and number of variables of the m file in the editor, as shown in the figure below. 4. You can enter the m file name followed by the variable value in brackets on the command line to call it, as shown in the figure below. 5. Finally, the m file can be successfully called, as shown in the figure below. The above is the complete description of how to call m files in matlab brought to you by the editor.

Where is the imperial cms resource network template? Where is the imperial cms resource network template? Apr 17, 2024 am 10:00 AM

Empire CMS template download location: Official template download: https://www.phome.net/template/ Third-party template website: https://www.dedecms.com/diy/https://www.0978.com.cn /https://www.jiaocheng.com/Installation method: Download template Unzip template Upload template Select template

How dedecms implements template replacement How dedecms implements template replacement Apr 16, 2024 pm 12:12 PM

Template replacement can be implemented in Dedecms through the following steps: modify the global.cfg file and set the required language pack. Modify the taglib.inc.php hook file and add support for language suffix template files. Create a new template file with a language suffix and modify the required content. Clear Dedecms cache.

How to upload local videos to dedecms How to upload local videos to dedecms Apr 16, 2024 pm 12:39 PM

How to upload local videos using Dedecms? Prepare the video file in a format that is supported by Dedecms. Log in to the Dedecms management backend and create a new video category. Upload video files on the video management page, fill in the relevant information and select the video category. To embed a video while editing an article, enter the file name of the uploaded video and adjust its dimensions.

How to call WebService using Java How to call WebService using Java Dec 29, 2023 pm 02:32 PM

The method steps of using Java to call WebService require specific code examples. Web service is a Web-based application program interface that provides various functions through the network. In Java development, we often need to use Web services to interact with other systems. This article will introduce how to use Java to call WebService and provide specific code examples. 1. Understand WebService WebService is a standardized communication protocol using XML format

What website can dedecms do? What website can dedecms do? Apr 16, 2024 pm 12:24 PM

Dedecms is an open source CMS that can be used to create various types of websites, including: news websites, blogs, e-commerce websites, forums and community websites, educational websites, portals, other types of websites (such as corporate websites, personal websites, photo album websites, video sharing website)

How to use dedecms How to use dedecms Apr 16, 2024 pm 12:15 PM

Dedecms is an open source Chinese CMS system that provides content management, template system and security protection. The specific usage includes the following steps: 1. Install Dedecms. 2. Configure the database. 3. Log in to the management interface. 4. Create content. 5. Set up the template. 6. Manage users. 7. Maintain the system.

Laravel practice: How to call controller methods correctly? Laravel practice: How to call controller methods correctly? Mar 10, 2024 pm 01:15 PM

Laravel practice: How to call controller methods correctly? In the Laravel framework, the controller is an important component that serves as a bridge between routing and models. The methods in the controller are used to handle routing requests, pass the data to the model for processing, and then return it to the view for display to the user. Therefore, calling controller methods correctly is crucial to the realization of program functions. This article will introduce how to correctly call controller methods in Laravel and provide specific code examples.

See all articles