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

overme4个月前 (10-17)网页设计218
Discuz教程之帖子内容页优化,如何取消如下内容页的举报按钮。

该功能,主要是论坛管理者维护时使用,网站访问者使用较少。为了简化网页内容,减少javascript,可以删除该功能。

打开模板文件夹下/forum/viewthread_node.htm文件,搜索pob,找到包含举例按钮的div。 在该div下,找到P标签相关内容,全部删除。

  1. <p>
  2.                                         <!–{if $post[‘invisible’] == 0}–>
  3.                                                 <!–{if $_G[‘setting’][‘magicstatus’]}–>
  4.                                                         <a href=”javascript:;” id=”mgc_post_$post[pid]” onmouseover=”showMenu(this.id)” class=”showmenu”>{lang thread_magic}</a>
  5.                                                 <!–{/if}–>
  6.                                                 <!–{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}–>
  7.                                                         <a href=”javascript:;” onclick=”setanswer($post[‘pid’], ‘$_GET[from]’)”>{lang reward_set_bestanswer}</a>
  8.                                                 <!–{/if}–>
  9.                                                 <!–{if !$post[‘first’] && $_G[‘group’][‘raterange’] && $post[‘authorid’]}–>
  10.                                                         <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>
  11.                                                 <!–{/if}–>
  12.                                                 <!–{if !empty($postlist[$post[pid]][‘totalrate’]) && $_G[‘forum’][‘ismoderator’]}–>
  13.                                                         <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>
  14.                                                 <!–{/if}–>
  15.                                                 <!–{if $post[‘authorid’] != $_G[‘uid’]}–>
  16.                                                         <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>
  17.                                                 <!–{/if}–>
  18.                                         <!–{/if}–>
  19.                                         <!–{hook/viewthread_postaction $postcount}–>
  20.                                 </p>

复制代码

相关文章


		Discuz相关帖子功能开启方法

Discuz相关帖子功能开启方法

Discuz系统相同帖子功能,是非常不错的功能,可以根据标签,匹配相关内容供用户浏览. 如下图示: 在此分享相关帖子功能开启方法: 步骤1: 进入后台 -> 界面 ->界面设置-&...

如何去掉Discuz标题中的Powered by Discuz

使用Discuz系统的网站,默认每个页面标题后面会出现”Powered by Discuz!“字样的信息,使得页面标题比较冗长。 为优化标题结构,在此分享Discuz标题结构优化方法。 操作方法如...

Discuz建站系统default目录结构说明

/template/default/common/  公共模板目录全局加载 /template/default/common/block_forumtree.htm  DIY论坛树形列表模块 /t...


		如何在DISCUZ发帖页添加自定义字段

如何在DISCUZ发帖页添加自定义字段

使用DISCUZ系统仿站时,发帖时如果要新增一些参数,怎么样才能实现这样的效果呢? 下面我爱自学网分享在网络上收集到的发帖内页添加字段的方法,供参考。 第一步:使用管理员用户名密码登录DISCUZ...

Discuz主题链接地址URL显示完全的修改教程

登陆FTP,打开 source/function/function_discuzcode.php 下载到本地,用代码编辑器编辑 搜索 如下代码 $length = 65; if(strle...

如何使Discuz [attachimg]代码正确解析

在一些较复杂的自定义Discuz!代码中,我们可能需要内嵌Discuz!自有的[attachimg]aid[/attachimg]代码。 案例:某视频播放器支持给每个视频设置一个图片封面,如果每次...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。