"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.">
search
HomeCMS TutorialPHPCMSHow 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.

How to use the comment function of phpcms

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!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!