看到不少人问,提供一下,参考自“蓝灰色的奇迹”风格
效果图:
css.htm(6.1为css_common.htm)
查找:- .forumlist th { padding-left: 55px !important; }
- .forumlist tbody th { background-image: url({IMGDIR}/forum.gif); background-repeat: no-repeat; background-position: 13px 50%; }
- .forumlist tbody th.new { background-image: url({IMGDIR}/forum_new.gif); }
复制代码 替换以下内容或者删除后在最后面加上:- .todaynew { width:58px; height:55px; float:left; background:url({IMGDIR}/digg.gif) no-repeat center top; margin:5px; text-align:center; color:#f60; font-weight:bold; font-size:12px; line-height:23px; font-family: Georgia, "Times New Roman", Times, serif; }
- .todaynew p { display:block; font-weight:100; margin:0px; padding:0px; border:0px; color:#858D92;}
- .today { width:58px; height:55px; float:left; background:url({IMGDIR}/digg_blue.gif) no-repeat center top; margin:5px; text-align:center; color:#217AB3; font-weight:bold; font-size:12px; line-height:23px; font-family: Georgia, "Times New Roman", Times, serif; }
- .today p { display:block; font-weight:100; margin:0px; padding:0px; border:0px; color:#858D92; font-size:11px; }
复制代码 discuz.htm查找:- <h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em> ({lang index_today}: $forum[todayposts])</em><!--{/if}--></h2>
复制代码 替换为:- <!--{if $forum[todayposts] && !$forum['redirect']}--><div class="todaynew">$forum[todayposts]<p>{lang index_today}</p></div><!--{else}--><div class="today">0<p>{lang index_today}</p></div><!--{/if}-->
- <h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></h2>
复制代码 横排,查找:- <h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: $forum[todayposts])</em><!--{/if}--></h2>
复制代码 替换为:- <!--{if $forum[todayposts] && !$forum['redirect']}--><div class="todaynew">$forum[todayposts]<p>{lang index_today}</p></div><!--{else}--><div class="today">0<p>{lang index_today}</p></div><!--{/if}--><h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></h2>
复制代码 子版块,forumdisplay_subforum.htm查找:- <h2><a href="forumdisplay.php?fid=$sub[fid]">$sub[name]</a><!--{if $sub[todayposts]}--> <em>({lang index_today}: $sub[todayposts])</em><!--{/if}--></h2>
复制代码 替换为:- <!--{if $sub[todayposts]}--><div class="todaynew">$sub[todayposts]<p>{lang index_today}</p></div><!--{else}--><div class="today">0<p>{lang index_today}</p></div><!--{/if}-->$sub[icon]
- <h2><a href="forumdisplay.php?fid=$sub[fid]">$sub[name]</a></h2>
复制代码 横排,查找:- <h2><a href="forumdisplay.php?fid=$sub[fid]">$sub[name]</a><!--{if $sub[todayposts]}--><em> ({lang index_today}: $sub[todayposts])</em><!--{/if}--></h2>
复制代码 替换为:- <!--{if $sub[todayposts]}--><div class="todaynew">$sub[todayposts]<p>{lang index_today}</p></div><!--{else}--><div class="today">0<p>{lang index_today}</p></div><!--{/if}-->
- $sub[icon]<h2><a href="forumdisplay.php?fid=$sub[fid]">$sub[name]</a></h2>
复制代码 补充,这样设置之后,下面的有新帖版块就显得多余了,
discuz.htm
查找删除:- <div class="legend">
- <label><img src="{IMGDIR}/forum_new.gif" alt="{lang forum_newposts}" />{lang forum_newposts}</label>
- <label><img src="{IMGDIR}/forum.gif" alt="{lang forum_nonewpost}" />{lang forum_nonewpost}</label>
- </div>
复制代码 或者将
<label><img src="{IMGDIR}/forum_new.gif" alt="{lang forum_newposts}" />{lang forum_newposts}</label>
<label><img src="{IMGDIR}/forum.gif" alt="{lang forum_nonewpost}" />{lang forum_nonewpost}</label>
改为“本论坛言论。。。。。。。立场无关”
最后更新CSS缓存。
图片附件上传到images\default
第一张:digg.gif 第二张:digg_blue.gif
图片附件:
图片附件2:
下面是已经修改好的文件,如果你没作过任何修改,请下载相应版本,覆盖。
[ 本帖最后由 拳头 于 2008-9-30 21:48 编辑 ] |