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

overme7个月前 (10-17)网页设计377
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默认的帖子内容页标题格式中,带有版块名称. 这样的内容页标题结构,导致标题过长,百度等搜素引擎收录时,标题看不到站点名称. 如何去除标题中的版块名称呢? 试着修改h...

discuz模板制作调用标签大全 标签汇总

discuz模板制作过程中需要使用大量的调有标签来替换固定的文字,这些调用标签都是DZ官方提供的,它代表了各自的含义,下面是DZ官方提供的模板调用标签大全 数据ID {id} 帖子URL...

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

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


		Discuz网站SEO优化,archiver功能开启还是关闭

Discuz网站SEO优化,archiver功能开启还是关闭

部分使用Discuz的朋友,认为静态链接利于搜索引擎爬虫抓取,因此开启了archiver功能。 Discuz archiver功能缺点:页面中的keywords,description都是相同的,...


		Discuz 核心函数class_core.php文件讲解

Discuz 核心函数class_core.php文件讲解

error_reporting(E_ALL); //设置error级别为报告所有错误 //定义常量值 define(‘IN_DISCUZ’, true); //设置常量IN_DISCUZ为true...


		Discuz forum_index.php文件分析

Discuz forum_index.php文件分析

<?php /** *      [Discuz!] (C)2001-2099 Comsenz Inc. *      This is NOT a freeware, use is s...

发表评论

访客

看不清,换一张

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