Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] 7.2横排美化(去除有无新帖、显示公告、无版主提示申请)

[复制链接]
eugames 发表于 2009-11-20 00:31:22 | 显示全部楼层 |阅读模式
插件发布
插件名称: 7.2横排美化(去除显示公告、无版主提示申请)
插件来源:
适用版本: Discuz! 7.1
语言编码: GBK简体 
最后更新时间:
插件作者: eugames
插件简介: 7.2横排美化(去除有无新帖、显示公告、无版主提示申请).看演示站
本帖最后由 eugames 于 2009-11-20 00:33 编辑

一、去除有无新帖:

风格目录中的CSS文件,如:templates/default/css_common.htm

查找到以下两段代码,并删除

  1. .list th { background: url({IMGDIR}/forum.gif) 5px 10px no-repeat; padding-left: 45px !important; }
复制代码

  1. .list th.new { background-image: url({IMGDIR}/forum_new.gif); }
复制代码


风格目录中的模板文件,如:templates/default/discuz.htm

查找到以下代码:

  1. <th width="$cat[forumcolwidth]"{$forum[folder]}>
复制代码


替换成:

  1. <th width="$cat[forumcolwidth]">{$forum[icon]}
复制代码


二、横排显示公告、无版主提示申请

查找到以下代码:
  1. <th width="$cat[forumcolwidth]"{$forum[folder]}>
  2.       <h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank"{/if} style="{if $forum[extra][namecolor]}color: {$forum[extra][namecolor]};{/if}">$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: <strong>$forum[todayposts]</strong>)</em><!--{/if}--></h2>
  3.       <!--{if !$forum[redirect]}-->
  4.        <p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p>
  5.        <!--{if $forum['permission'] == 1}-->
  6.         <p>{lang private_forum}
  7.        <!--{else}-->
  8.         <p>{lang forum_lastpost}:
  9.          <!--{if is_array($forum['lastpost'])}-->
  10.           <a href="redirect.php?tid=$forum[lastpost][tid]&amp;goto=lastpost#lastpost" title="{echo cutstr($forum[lastpost][subject], 30)} {lang forum_lastpost_by} {if $forum['lastpost']['author']}$forum['lastpost']['authorusername']{else}{lang anonymous}{/if}  ">$forum[lastpost][dateline]</a>
  11.          <!--{else}-->
  12.           {lang never}
  13.          <!--{/if}-->
  14.         </p>
  15.        <!--{/if}-->
  16.       <!--{else}-->
  17.        <p>{lang url_link}</p>
  18.       <!--{/if}-->
  19.      </th>
复制代码


替换成:

  1. <th width="$cat[forumcolwidth]">{$forum[icon]}
  2. <h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank"{/if} style="{if $forum[extra][namecolor]}color: {$forum[extra][namecolor]};{/if}">$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: <strong>$forum[todayposts]</strong>)</em><!--{/if}--></h2>
  3. <!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}-->
  4. <!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><p>{lang forum_moderators}: $forum[moderators]</p><!--{else}--><span class="dropmenu" id="mod$forum[fid]" onmouseover="showMenu({'ctrlid':this.id})">{lang forum_moderators}</span><ul class="popupmenu_popup headermenu_popup" id="mod$forum[fid]_menu" style="display: none">$forum[moderators]</ul><!--{/if}--><!--{else}-->暂无版主:<a href="链接地址" target="_blank">点击申请</a><!--{/if}-->
  5. </th>
复制代码



三、后台更新缓存,完成
mingyu1988 发表于 2009-11-20 01:04:08 | 显示全部楼层
沙发了~~~
回复

使用道具 举报

0593zx 发表于 2009-11-20 11:10:55 | 显示全部楼层
横排显示公告、无版主提示申请

这是在什么文件里啊  我没找到代码
就改了 css_common.htm        default/discuz.htm

网站就变了  www.0593zx.com
回复

使用道具 举报

abcnic18 发表于 2009-11-20 11:31:40 | 显示全部楼层
好东西支持了
回复

使用道具 举报

wd0212 发表于 2009-11-20 16:35:00 | 显示全部楼层
支持了,好东西
回复

使用道具 举报

lishiminv 发表于 2009-11-22 11:07:22 | 显示全部楼层
用上了,支持下。
回复

使用道具 举报

7#
无效楼层,该帖已经被删除
晴天OH 发表于 2009-11-22 13:50:37 | 显示全部楼层
回复 1# eugames
为什么我都弄了,后台缓存更新了,还是没用。
回复

使用道具 举报

不可说 发表于 2009-11-23 13:09:56 | 显示全部楼层
这个代码有问题,呵呵
回复

使用道具 举报

worromot 发表于 2009-11-23 13:14:56 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-28 04:50 , Processed in 0.386021 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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