


Practical Empire CMS implements a method to automatically regenerate content pages after submitting comments
This article describes how Imperial CMS automatically regenerates content pages after submitting comments as follows:
1. Modify the e/pl/plfun.php file and find:
//Set the last publishing time
Add this
code below:
$usql=$empire->query("update {$dbtbpre}ecms_".$class_r[$classid][tbname]." set havehtml=0 where id='$id'");
2. Change the return address of the comment to:
The code is as follows:
<input type="hidden" name="ecmsfrom" value="[!--news.url--]e/action/ShowInfo?classid=[!--classid--]&id= [!--id--]" />
In this way, you can use tags to call comments on the content page. After someone comments, the content page will be regenerated
If you cannot see the comment after submission content, please set the browser's cache check update to check when accessing the page/every time you access the page
Recommended to study "Empire cms tutorial"
The above is the detailed content of Practical Empire CMS implements a method to automatically regenerate content pages after submitting comments. For more information, please follow other related articles on the PHP Chinese website!

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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

SublimeText3 Linux new version
SublimeText3 Linux latest version

Dreamweaver CS6
Visual web development tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software