


How to call the website head in dedeCMS DreamWeaver message board_PHP tutorial
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

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



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.

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

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

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

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)

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