PHPCMS评论怎么用?
来源:小码王信奥 时间:2024-10-16 浏览量:54

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="" height="" id="comment_iframe" frameborder="0" scrolling="no" height=&#39;600&#39;></iframe>
{/if}

或

立即学习“PHP免费学习笔记(深入)”;

{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(&#39;commentid&#39;=>&#39;content_&#39;.$catid.&#39;-&#39;.$r[id].&#39;-&#39;.$modelid));}
<li><span class="rt">{date(&#39;Y-m-d H:i:s&#39;,$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/" target="_blank">PHPCMS教程》

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

免责申明:以上展示内容来源于合作媒体、企业机构、网友提供或网络收集整理,版权争议与本站无关,文章涉及见解与观点不代表小码王官方立场,请读者仅做参考。本文标题:PHPCMS评论怎么用?,本文链接:http://www.xiaomawang.vip/help/11484.html;欢迎转载,转载请说明出处。若您认为本文侵犯了您的版权信息,或您发现该内容有任何涉及有违公德、触犯法律等违法信息,请您立即通过邮件(邮箱号: hzlixy@xiaoma.cn)联系我们及时修正或删除。