Home > CMS Tutorial > Empire CMS > Practical Empire CMS implements a method to automatically regenerate content pages after submitting comments

Practical Empire CMS implements a method to automatically regenerate content pages after submitting comments

silencement
Release: 2019-12-03 15:04:44
forward
2608 people have browsed it

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

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--]" />
Copy after login

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!

Related labels:
source:www.word666.com/cms
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template