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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[美化] [原创]论坛今日新帖大于‘0’时显示为粗体红字!

[复制链接]
whfill 发表于 2006-2-5 13:36:21 | 显示全部楼层 |阅读模式
演示:www.9jbbs.com

第一步:
templates\default\index.htm

找到:
  1.                 <td class="altbg1" align="center">$forum[todayposts]</td>
复制代码


改为:

  1.                 <!--{if $forum[todayposts] == 0}-->
  2.                         <td class="altbg1" align="center">$forum[todayposts]</td>
  3.                 <!--{else}-->
  4.                         <td class="altbg1" align="center"><b><font color=red>$forum[todayposts]</font></b></td>
  5.                 <!--{/if}-->
复制代码


第二步:
templates\default\forumdisplay_subforum.htm

找到:
  1.                 <td class="altbg2" align="center">$sub[todayposts]</td>
复制代码


改为:

  1.                 <!--{if $sub[todayposts] == 0}-->
  2.                         <td class="altbg1" align="center">$sub[todayposts]</td>
  3.                 <!--{else}-->
  4.                         <td class="altbg1" align="center"><b><font color=red>$sub[todayposts]</font></b></td>
  5.                 <!--{/if}-->
复制代码


完成!看看效果吧!

[ 本帖最后由 freddy 于 2006-2-6 08:27 编辑 ]

评分

1

查看全部评分

紫云杉 发表于 2006-2-5 13:48:47 | 显示全部楼层
蛮不错的
回复

使用道具 举报

Liuxff 发表于 2006-2-5 13:51:41 | 显示全部楼层
回复

使用道具 举报

明明在线 发表于 2006-2-5 13:53:11 | 显示全部楼层
不错不错~
回复

使用道具 举报

紫云杉 发表于 2006-2-5 13:53:43 | 显示全部楼层
已经用上了
谢谢:)
回复

使用道具 举报

cuher 发表于 2006-2-5 13:53:55 | 显示全部楼层
干么要大红字?
我觉得0要大红警告
回复

使用道具 举报

紫云杉 发表于 2006-2-5 13:59:34 | 显示全部楼层
原帖由 cuher 于 2006-2-5 13:53 发表
干么要大红字?
我觉得0要大红警告

呵呵
那你自己改改
我用的黑色的
回复

使用道具 举报

 楼主| whfill 发表于 2006-2-5 14:06:29 | 显示全部楼层
颜色想怎么改就怎么改  这个也没什么技术含量   无意发现的就改了一下
回复

使用道具 举报

渡雨 发表于 2006-2-5 15:06:04 | 显示全部楼层
支持,已经用上了。
回复

使用道具 举报

 楼主| whfill 发表于 2006-2-5 16:08:26 | 显示全部楼层
需要的赶紧了啊   要不然就沉了~~~~~
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-28 03:53 , Processed in 0.102658 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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