Home > CMS Tutorial > PHPCMS > How to use the comment function of phpcms

How to use the comment function of phpcms

藏色散人
Release: 2020-07-21 09:40:37
Original
3611 people have browsed it

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}
Copy after login

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}
Copy after login

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!

Related labels:
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
Latest Issues
How to uninstall phpcms
From 1970-01-01 08:00:00
0
0
0
phpcms cannot be installed
From 1970-01-01 08:00:00
0
0
0
phpcms access address does not exist
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template