The Imperial CMS implementation automatically regenerates the content page after submitting comments
This article is about Empire CMS to achieve automatic regeneration of content pages after submitting comments. Xiao Bian thinks it is quite practical, so share it for everyone to make a reference. Let's follow the editor and have a look.
1. Modify the e/pl/plfun.php file and find:
//Set the last published time
Add the following code below:
$usql=$empire->query("update {$dbtbpre}ecms_".$ class_r[$classid][tbname]. " set havehtml=0 where id='$id'");
2. Change the return address for posting comments to:
This allows you to call up comments on the content page with a tag, and the content page will be regenerated after someone has posted a comment.
Thank you for reading! About Empire CMS to achieve automatic regeneration of the content page after submitting comments to share here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge. If you think the article is good, you can share it so that more people can see it!