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
silencementforward
2019-12-03 15:03:272609browse

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!

Statement:
This article is reproduced at:www.word666.com/cms. If there is any infringement, please contact admin@php.cn delete