删除discuz帖子内容页举报按钮

该功能,主要是论坛管理者维护时使用,网站访问者使用较少。为了简化网页内容,减少javascript,可以删除该功能。
打开模板文件夹下/forum/viewthread_node.htm文件,搜索pob,找到包含举例按钮的div。 在该div下,找到P标签相关内容,全部删除。
- <p>
- <!–{if $post[‘invisible’] == 0}–>
- <!–{if $_G[‘setting’][‘magicstatus’]}–>
- <a href=”javascript:;” id=”mgc_post_$post[pid]” onmouseover=”showMenu(this.id)” class=”showmenu”>{lang thread_magic}</a>
- <!–{/if}–>
- <!–{if $_G[‘forum_thread’][‘special’] == 3 && ($_G[‘forum’][‘ismoderator’] && (!$_G[‘setting’][‘rewardexpiration’] || $_G[‘setting’][‘rewardexpiration’] > 0 && ($_G[timestamp] – $_G[‘forum_thread’][‘dateline’]) / 86400 > $_G[‘setting’][‘rewardexpiration’]) || $_G[‘forum_thread’][‘authorid’] == $_G[‘uid’]) && $post[‘authorid’] != $_G[‘forum_thread’][‘authorid’] && $post[‘first’] == 0 && $_G[‘uid’] != $post[‘authorid’] && $_G[‘forum_thread’][‘price’] > 0}–>
- <a href=”javascript:;” onclick=”setanswer($post[‘pid’], ‘$_GET[from]’)”>{lang reward_set_bestanswer}</a>
- <!–{/if}–>
- <!–{if !$post[‘first’] && $_G[‘group’][‘raterange’] && $post[‘authorid’]}–>
- <a href=”javascript:;” onclick=”showWindow(‘rate’, ‘forum.php?mod=misc&action=rate&tid=$_G[tid]&pid=$post[pid]’, ‘get’, -1);return false;”>{lang rate}</a>
- <!–{/if}–>
- <!–{if !empty($postlist[$post[pid]][‘totalrate’]) && $_G[‘forum’][‘ismoderator’]}–>
- <a href=”forum.php?mod=misc&action=removerate&tid=$_G[tid]&pid=$post[pid]&page=$page” onclick=”showWindow(‘rate’, this.href, ‘get’, -1)”>{lang removerate}</a>
- <!–{/if}–>
- <!–{if $post[‘authorid’] != $_G[‘uid’]}–>
- <a href=”javascript:;” onclick=”showWindow(‘miscreport$post[pid]’, ‘misc.php?mod=report&rtype=post&rid=$post[pid]&tid=$_G[tid]&fid=$_G[fid]’, ‘get’, -1);return false;”>{lang report}</a>
- <!–{/if}–>
- <!–{/if}–>
- <!–{hook/viewthread_postaction $postcount}–>
- </p>
复制代码