新闻中心

无忧主机教你如何快速去掉discuz贴内“分享到”“分享、收藏、评分、支持、反对、评分”等按钮

作者 / 无忧主机 时间 2015-01-07 12:11:25

今天无忧主机的一位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[tid]" 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[tid]" 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[tid]" {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[setting][recommendthread][addtext]'"><i><img src="{IMGDIR}/rec_add.gif" alt="$_G['setting']['recommendthread'][addtext]" />$_G['setting']['recommendthread'][addtext]<span id="recommendv_add">$_G[forum_thread][recommend_add]</span></i></a>
<a id="recommend_subtract" href="forum.php?mod=misc&action=recommend&do=subtract&tid=$_G[tid]" {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[setting][recommendthread][subtracttext]'"><i><img src="{IMGDIR}/rec_subtract.gif" alt="$_G['setting']['recommendthread'][subtracttext]" />$_G['setting']['recommendthread'][subtracttext]<span id="recommendv_subtract">$_G[forum_thread][recommend_sub]</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[tid]&pid=$post[pid]', 'get', -1);return false;" title="{echo count($postlist[$post[pid]][totalrate]);} {lang people_score}"><i><img src="{IMGDIR}/agree.gif" alt="{lang rate}" />{lang rate}</i></a>
<!--{/if}-->
问题解决,此类方法算是帖内美化文章!感谢您的无忧主机的支持! 无忧主机相关文章推荐阅读: DISCUZ论坛程序如何在网站的最顶部添加广告 DISCUZ论坛程序利用插件在首页主导航添加视屏直播 DISCUZ教程之如何禁止特定的板块不让蜘蛛爬取的方法 DISCUZ经验:“此QQ帐号还未绑定任何站点,无法登陆”问题解决办法

本文地址:https://www.51php.com/discuz/18227.html

1
1
1
1
1
1
1

客户服务热线

0791-8623-3537

在线客服