1. Modify the e/pl/plfun.php file and find:
//设置最后发表时间
Add the following code below:
$usql=$empire->query("update {$dbtbpre}ecms_".$class_r[$classid][tbname]." set havehtml=0 where id='$id'");
2. Publish Change the return address of comments to:
<input type="hidden" name="ecmsfrom" value="[!--news.url--]e/action/ShowInfo?classid=[!--classid--]&id=[!--id--]" />
This way, comments can be called with tags on the content page, and the content page will be regenerated after someone posts a comment.
Recommended tutorial: Empire CMS Tutorial
The above is the detailed content of How does Imperial CMS automatically regenerate content pages after submitting comments?. For more information, please follow other related articles on the PHP Chinese website!