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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 English version
Recommended: Win version, supports code prompts!

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SublimeText3 Linux new version
SublimeText3 Linux latest version