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!