电脑计算机论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1570|回复: 0

discuzx去掉贴内“分享到”以及“分享、收藏、评分、支持、反对、评分”等按钮

[复制链接]
admin 发表于 2013-5-11 22:52:54 | 显示全部楼层 |阅读模式
找到模板目录下的viewthread_node.htm文件(默认模板路径为:template/default/forum/viewthread_node.htm):
1、去掉:“分享到:QQ空间腾讯微薄、腾讯朋友”。在viewthread_node.htm文件搜索并删除:
<!–{if !empty($_G['setting']['pluginhooks']['viewthread_share_method'])}–>
<div>
<strong>{lang viewthread_share_to}:</strong>
<!–{hook/viewthread_share_method}–>
</div>
<!–{/if}–>

效果如下:
2、去掉:“分享、收藏、支持、反对、评分”按钮。在viewthread_node.htm文件搜索并删除:
<!–{if $_G['setting']['share']}–>
<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}–>



您需要登录后才可以回帖 登录 | 注册

本版积分规则


QQ|手机版|小黑屋|电脑计算机论坛 ( 京ICP备2022023538号-1 )

GMT+8, 2024-11-23 23:48 , Processed in 0.121264 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表