打印

[程序教程] "今日"美化 FOR discuz 6.1.0

"今日"美化 FOR discuz 6.1.0

效果演示:
手动修改方法:
1.风格模版文件夹里面 css_common.htm
在底部添加
复制内容到剪贴板
代码:
.todaynew { width:52px; height:51px; float:left;
background:url({IMGDIR}/digg.gif) no-repeat center top; margin:5px;
text-align:center; :#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; :#858D92;}


.today { width:52px; height:51px;
float:left; background:url({IMGDIR}/digg_blue.gif) no-repeat center top;
margin:5px; text-align:center; :#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; :#858D92; font-size:11px; }
2. 风格模版文件夹里面文件 css_common.htm

.forumlist tbody th.new { background-image: url({IMGDIR}/forum_new.gif); }
.forumlist th { padding-left: 55px !important; }
.forumlist tbody th { background-image: url({IMGDIR}/forum.gif); background-repeat:
no-repeat; background-position: 13px 50%;
}

查找并删除红色部分


3. templates\default\discuz.htm
查找:
复制内容到剪贴板
代码:

<tbody id="forum$forum[fid]">
<tr>
<th$forum[folder]>
$forum[icon]
<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>
修改为:
复制内容到剪贴板
代码:

<tbody id="forum$forum[fid]">
<tr>
<th>
<!--{if
$forum[todayposts] && !$forum['redirect']}-->
class="todaynew">$forum[todayposts]{lang
index_today}<!--{else}-->
class="today">0{lang
index_today}<!--{/if}-->
<h2><a
href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></h2>
4. templates \ default \ discuz.htm
查找:
复制内容到剪贴板
代码:

<h2><a
href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if
$forum[todayposts]}--><em> ({lang index_today}:
$forum[todayposts])</em><!--{/if}--></h2>
修改为:
复制内容到剪贴板
代码:

<h2>
<!--{if $forum[todayposts] && !$forum['redirect']}-->
class="todaynew">$forum[todayposts]{lang
index_today}<!--{else}-->
class="today">0{lang
index_today}<!--{/if}--><h2><a
href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></h2>
5. templates\default\discuz.htm

查找并删除:
复制内容到剪贴板
代码:

<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>
6. 上传两个附件 digg.gif  digg_blue.gif 到你的images 对应的模板目录内

7.更新缓存(一定要做)

附件

digg.gif (1.35 KB)

2008-8-13 10:56

digg.gif

digg_blue.gif (1.39 KB)

2008-8-13 10:56

digg_blue.gif

嗯!不错.
恩,是不错,要是想用的朋友可以试用下
谋杀九月,逃亡十月,死于九十之间
其实你应该把论坛模板改下,现在的模板看上去挺新手的
学习了。。  不错的教程哦。。 。、
效果不错看起来
做教程用到它了
多的不说了,谢谢楼主分享,
<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 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>
返回顶部
CNzhanzhang.com

Processed in 0.051636 second(s), 8 queries, Gzip enabled.

当前时区 GMT+8, 现在时间是 2008-11-21 17:20 豫ICP备08002104号

清除 Cookies - 联系我们 - 中国站长论坛 - Archiver - WAP - 界面风格