浏览 5848 次 / [ 天下网闻 ] Discuz X2/X2.5如何去掉分享到/收藏/评分/支持/反对/评分按钮
  • 发布时间 2012-05-22 04:27
  • 未去掉之前展示如下:
    内容.jpg

    方法如下:

    找到模板目录下的viewthread_node.htm文件(默认模板路径为:template/default/forum/viewthread_node.htm):

    1、去掉:“分享到:QQ空间、腾讯微薄、腾讯朋友”。在viewthread_node.htm文件搜索并删除:

    http://www.discuz.net/static/image/common/codebg.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(102, 102, 102); zoom: 1; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; font-family: Tahoma, 'Microsoft Yahei', Simsun; font-size: 14px; line-height: 21px; background-position: 0px 0px; background-repeat: no-repeat repeat; ">
    1. <!--{if !empty($_G['setting']['pluginhooks']['viewthread_share_method'])}-->
    2. <div class="tshare cl">
    3. <strong>{lang viewthread_share_to}:</strong>
    4. <!--{hook/viewthread_share_method}-->
    5. </div>
    6. <!--{/if}-->
    复制代码
    效果如下:

     


    2、去掉:“分享、收藏、支持、反对、评分”按钮。在viewthread_node.htm文件搜索并删除:

    http://www.discuz.net/static/image/common/codebg.gif); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); color: rgb(102, 102, 102); zoom: 1; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; font-family: Tahoma, 'Microsoft Yahei', Simsun; font-size: 14px; line-height: 21px; background-position: 0px 0px; background-repeat: no-repeat repeat; ">
    1. <!--{if $_G['setting']['homestatus']}-->
    2. <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>
    3. <!--{/if}-->
    4. <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>
    5. <!--{if ($_G['group']['allowrecommend'] || !$_G['uid']) && $_G['setting']['recommendthread']['status']}-->
    6. <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>
    7. <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>
    8. <!--{/if}-->
    9. <!--{if $_G['group']['raterange'] && $post['authorid']}-->
    10. <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>
    11. <!--{/if}-->
    复制代码