道勤主机教你如何快速去掉DISCUZ贴内“分享到”“分享、收藏、评分、支持、反对、...
今天道勤主机的一位php独立ip空间客户有一个问题很疑惑:新安装的Discuz!X3.2发现帖内分享到:QQ空间、腾讯微薄、腾讯朋友。这些功能都是失效的。官方也证实如果需要用此功能的话,需要去应用中心下载第三方插件实现。既然没用道勤主机小编就教大家如何去除掉。1、去除:“分享到:QQ空间、腾讯微薄、腾讯朋友”文件目录为(文本编辑器打开):template/default/forum/viewthread_node.htm(举例为默认模版)
搜索到:(删除即可)<!--{if !empty($_G['setting']['pluginhooks']['viewthread_share_method'])}-->
<div class="tshare cl">
<strong>{lang viewthread_share_to}:</strong>
<!--{hook/viewthread_share_method}-->
</div>
<!--{/if}-->2、去除:“分享、收藏、支持、反对、评分”
文件目录为(文本编辑器打开):template/default/forum/viewthread_node.htm(举例为默认模版)
搜索到:(删除即可)<!--{if $_G['setting']['homestatus']}-->
<a href="home.php?mod=spacecp&ac=share&type=thread&id=$_G" id="k_share" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('sharenumber').innerHTML + ' {lang activity_member_unit}{lang thread_share}'"><i><img src="{IMGDIR}/oshr.png" alt="{lang thread_share}" />{lang thread_share}<span id="sharenumber">{$_G['forum_thread']['sharetimes']}</span></i></a>
<!--{/if}-->
<a href="home.php?mod=spacecp&ac=favorite&type=thread&id=$_G" id="k_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('favoritenumber').innerHTML + ' {lang activity_member_unit}{lang thread_favorite}'"><i><img src="{IMGDIR}/fav.gif" alt="{lang thread_favorite}" />{lang thread_favorite}<span id="favoritenumber">{$_G['forum_thread']['favtimes']}</span></i></a>
<!--{if ($_G['group']['allowrecommend'] || !$_G['uid']) && $_G['setting']['recommendthread']['status']}-->
<a id="recommend_add" href="forum.php?mod=misc&action=recommend&do=add&tid=$_G" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate({$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_add').innerHTML + ' {lang activity_member_unit}$_G'"><i><img src="{IMGDIR}/rec_add.gif" alt="$_G['setting']['recommendthread']" />$_G['setting']['recommendthread']<span id="recommendv_add">$_G</span></i></a>
<a id="recommend_subtract" href="forum.php?mod=misc&action=recommend&do=subtract&tid=$_G" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate(-{$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_subtract').innerHTML + ' {lang activity_member_unit}$_G'"><i><img src="{IMGDIR}/rec_subtract.gif" alt="$_G['setting']['recommendthread']" />$_G['setting']['recommendthread']<span id="recommendv_subtract">$_G</span></i></a>
<!--{/if}-->
<!--{if $_G['group']['raterange'] && $post['authorid']}-->
<a href="javascript:;" id="ak_rate" onclick="showWindow('rate', 'forum.php?mod=misc&action=rate&tid=$_G&pid=$post', 'get', -1);return false;" title="{echo count($postlist[$post]);} {lang people_score}"><i><img src="{IMGDIR}/agree.gif" alt="{lang rate}" />{lang rate}</i></a>
<!--{/if}-->问题解决,此类方法算是帖内美化文章!感谢您的道勤主机的支持!
页:
[1]