如何只去掉ecshop帮助中心文章详细页面的评论栏目
日期:2013-06-16
1.打开 article.php 文件,找到
2.修改 themes/default/library/comments.lbi 文件,找到
$smarty->assign('comment_type', 1);
在它下面增加以下代码$smarty->assign('help_id',array_pop($catlist));
2.修改 themes/default/library/comments.lbi 文件,找到
{insert_scripts files='transport.js,utils.js'}
<div id="ECS_COMMENT"> {* ECSHOP 提醒您:动态载入comments_list.lbi,显示评论列表和评论表单 *}{insert name='comments' type=$type id=$id}</div>
将它修改为{if $help_id neq 1}
{insert_scripts files='transport.js,utils.js'}
<div id="ECS_COMMENT"> {* ECSHOP 提醒您:动态载入comments_list.lbi,显示评论列表和评论表单 *}{insert name='comments' type=$type id=$id}</div>
{/if}
本文原创地址:https://ecshopok.com/article-38.html
版权所有 © 转载时必须以链接形式注明出处!
觉得本文对您有用,想收藏下来!方法很简单:请点击-〉
我们一直坚持白天工作、晚上熬夜更新资源,付出了巨大的精力和时间,其中的辛酸难以言述。


暂无评论,来发表一个吧