个人认为ECSHOP帮助中心分类下的文章没有必要给它加个评论功能,下面我们来去掉它第一步:首先我们打开 /article.php 文件找到$smarty->assign(‘comment_type’, 1);在它下面增加一行代码$smarty->assign(‘topcatid’,array_pop($catlist));第二步:然后我们来修改 /themes/default/library/comments.lbi找到
{insert_scripts files=’transport.js,utils.js’}<div id="ECS_COMMENT"> {* ECSHOP 提醒您:动态载入comments_list.lbi,显示评论列表和评论表单 *}{insert type=$type id=$id}</div>
将它修改为
{if $topcatid neq 1}{insert_scripts files=’transport.js,utils.js’}<div id="ECS_COMMENT"> {* ECSHOP 提醒您:动态载入comments_list.lbi,,显示评论列表和评论表单 *}{insert type=$type id=$id}</div>{/if}
这样就可以了,去重新刷新一下帮助中心的文章页,看是不是没有评论框了。
一个人目睹沿途的风景,拿着相机,拍下沿途上的风景,