- 注册时间
- 2007-6-14
- 最后登录
- 2022-6-9
- 阅读权限
- 200
- 积分
- 8525
- 精华
- 17
- 帖子
- 5572
  
|
方法步骤:
1、将做好的两个板块图标图片文件today_new.gif today.gif 上传到论坛的static\image\common目录下;
2、打开当前风格目录下的discuz.htm文件,查找:
- <div class="icn"{if !empty($forum[extra][iconwidth]) &&
!empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
- <!--{if $forum[icon]}-->
- $forum[icon]
- <!--{else}-->
- <img
src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="" />
-
<!--{/if}-->
复制代码 修改为:
- <div class="icn" style="width:70px;">
-
- <!--{if $forum[todayposts]
&& !$forum['redirect']}--><div
class="today_new">$forum[todayposts]</div><!--{else}--><div
class="today">0</div><!--{/if}-->
复制代码 3、打开template\default\common文件,在文件最末加:
- .today_new { width:70px; height:57px; float:left;
background:url({IMGDIR}/today_new.gif) no-repeat center top; margin:5px;
text-align:center; color:#ffffff; font-weight:bold; font-size:15px;
line-height:23px; font-family: Georgia, "Times New Roman", Times, serif; }
- .today { width:70px; height:57px; float:left;
background:url({IMGDIR}/today.gif) no-repeat center top; margin:5px;
text-align:center; color:#ffffff; font-weight:bold; font-size:15px;
line-height:23px; font-family: Georgia, "Times New Roman", Times, serif;
}
4、后台 -- 界面
-- 风格管理 -- 更新CSS缓存;后台 -- 工具 -- 更新缓存
|
|