


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

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

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Dreamweaver CS6
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

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

WebStorm Mac version
Useful JavaScript development tools
