Home > CMS Tutorial > Empire CMS > body text

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

王林
Release: 2019-11-07 13:37:57
Original
3179 people have browsed it

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

1. Modify the e/pl/plfun.php file and find:

//设置最后发表时间
Copy after login

Add the following code below:

$usql=$empire->query("update {$dbtbpre}ecms_".$class_r[$classid][tbname]." set havehtml=0 where id='$id'");
Copy after login

2. Publish Change the return address of comments to:

<input type="hidden" name="ecmsfrom" value="[!--news.url--]e/action/ShowInfo?classid=[!--classid--]&id=[!--id--]" />
Copy after login

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!

Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!