PHPCMS评论怎么用?

互联网 20-7-20

PHPCMS评论怎么用?

首先在后台的“模块”下的"模块管理"里面找到“评论模块”,对其进行安装;然后在“模块”下的“评论”一项里可以对此模块进行一些功能参数的配置;最后在前台模板添加评论标签即可。

引用代码

{if $allow_comment && module_exists('comment')} <span style="white-space:pre"></span><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" height='600'></iframe> {/if}
{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));} <li><span class="rt">{date('Y-m-d H:i:s',$r[inputtime])}</span>·<a href="{$r[url]}" target="_blank"{title_style($r[style])}>{$r[title]}</a> 评论数:{if $comment_total}{$comment_total}{else}0{/if}</li> {/loop}  {$pages} {/pc}

推荐教程:《PHPCMS教程》

以上就是PHPCMS评论怎么用?的详细内容,更多内容请关注技术你好其它相关文章!

来源链接:
免责声明:
1.资讯内容不构成投资建议,投资者应独立决策并自行承担风险
2.本文版权归属原作所有,仅代表作者本人观点,不代表本站的观点或立场
标签: phpcms
上一篇:php获取远程图片并下载保存到本地的方法分析 下一篇:phpcms生成缩略图失败如何解决?

相关资讯