"Module Management" in the background; then configure some functional parameters of the comment module; finally call the comment message window label code."/> "Module Management" in the background; then configure some functional parameters of the comment module; finally call the comment message window label code.">
Home >CMS Tutorial >PHPCMS >How to use the comment function of phpcms
How to use the comment function of phpcms: First, find the "Comments" line in the "Module" -> "Module Management" in the background; then configure some functional parameters of the comment module; finally call the comment message window Tag code is enough.
Usage of phpcms v9 comment module
The comment module of phpcms v9 is generally placed on website articles and other content The following is used to leave comments and comments on current articles, etc.
1. How to use the background:
1. Uninstall, install and configure:
Find the "Comments" line in the "Module" - "Module Management" in the background , you can uninstall or install it; in the "Module" - "Comments" item in the background, you can configure some functional parameters of this module, such as whether to audit, whether to enable verification codes, etc.
2. Comment content management:
In the "Comments Management" under "Content" - "Content Release Management" in the background, you can delete and review all comments and messages on the website. Wait for management operations.
In addition, you can also view and manage comments on a certain article in the article list in "Content Management". There is a comment link on the right side of the article list to view the comments under the current article. .
Recommendation: "phpcms tutorial"
2. Call the tag method in the template page:
Calling the comment message window Tag code examples are as follows:
{if $allow_comment && module_exists('comment')} <iframe src="{APP_PATH}index.php?m=comment&c=index&a=init&commentid={id_encode("content_$catid",$id,$siteid)}&iframe=1" width="100%" height="100%" id="comment_iframe" frameborder="0" scrolling="no"></iframe> {/if}
Code examples for popular comment articles are as follows:
{pc:comment action="bang" siteid="$siteid" cache="3600"} <ul class="content list blue f14 row-2"> {loop $data $r} <li>·<a href="{$r[url]}" target="_blank">{str_cut($r[title], 40)}</a><span>({$r[total]})</span></li> {/loop} </ul> {/pc}
3. Comment function switch:
In the editing interface where we add articles, the intention is " "Whether to allow comments" to determine whether to enable the comment function for this article.
PS: The comment function is generally used on content pages; for more detailed website construction methods using phpcms tags, please refer to the official manual and iphpcms video tutorial.
The above is the detailed content of How to use the comment function of phpcms. For more information, please follow other related articles on the PHP Chinese website!