."/> .">

Home >CMS Tutorial >Empire CMS >How does Imperial CMS automatically regenerate content pages after submitting comments?

How does Imperial CMS automatically regenerate content pages after submitting comments?

王林
王林Original
2019-11-07 13:37:573244browse

How does Imperial CMS automatically regenerate content pages after submitting comments?

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!

Statement:
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