Home> CMS Tutorial> PHPCMS> body text

How to use PHPCMS comments?

Guanhui
Release: 2020-07-20 15:17:12
Original
3137 people have browsed it

How to use PHPCMS comments?

How to use PHPCMS comments?

First find the "Comment Module" in "Module Management" under "Module" in the background and install it; then you can comment on it in the "Comments" item under "Module" The module configures some functional parameters; finally, add comment tags to the front-end template.

Quote code

{if $allow_comment && module_exists('comment')}  {/if}
Copy after login

or

{pc:content action="lists" catid="$catid" num="25" order="id DESC" page="$page" moreinfo="1"} {loop $data $r} {php $comment_tag = pc_base::load_app_class("comment_tag", "comment"); $comment_total = $comment_tag->count(array('commentid'=>'content_'.$catid.'-'.$r[id].'-'.$modelid));} 
  • {date('Y-m-d H:i:s',$r[inputtime])}·{$r[title]} 评论数:{if $comment_total}{$comment_total}{else}0{/if}
  • {/loop} {$pages} {/pc}
    Copy after login

    Recommended tutorial: "PHPCMS Tutorial"

    The above is the detailed content of How to use PHPCMS comments?. For more information, please follow other related articles on the PHP Chinese website!

    Related labels:
    source:php.cn
    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 Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!