湖中沉 发表于 2011-3-12 12:35:10

首页今日贴数、昨日贴数等美化

打开自己当前模板的discuz.htm文件,查找(第14行):
<p class="chart">{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: $postdata<span class="pipe">|</span>{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['setting']['lastmember']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['setting']['lastmember'])}" target="_blank" class="xi2">$_G['setting']['lastmember']</a></em><!--{/if}--></p>

替换为:

<p class="chart">{lang index_today}: <em>$todayposts</em><span class="pipe"> | </span><img src="{IMGDIR}/yestoday.gif" alt="昨日贴数" style="position:relative; top:4px;">&nbsp;&nbsp;{lang index_yesterday}: $postdata<span class="pipe"> | </span><img src="{IMGDIR}/replay.gif" alt="总贴数" style="position:relative; top:4px;">&nbsp;&nbsp;{lang index_posts}: <em>$posts</em><span class="pipe"> | </span><img src="{IMGDIR}/members.gif" alt="会员数" style="position:relative; top:4px;">&nbsp;&nbsp;{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['setting']['lastmember']}--><span class="pipe"> | </span><img src="{IMGDIR}/welcome.gif" alt="欢迎新会员" style="position:relative; top:4px;">&nbsp;&nbsp;{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['setting']['lastmember'])}" target="_blank" class="xi2">$_G['setting']['lastmember']</a></em><!--{/if}--></p>

然后下载附件,解压后将图片文件全部上传到论坛的static/image/common目录下,然后更新缓存即可。

演示图片:



**** Hidden Message *****

情非得已 发表于 2013-5-21 10:03:29

="chart">{lang index_today}: <em>$todayposts</em><span class="pipe"> | </span><img src="{IMGDIR}/yestoday.gif" alt="昨日贴数" style="position:relative; top:4px;">&nbsp;&nbsp;{lang index_yesterday}: $postdata<span class="pipe"> | </span><img src="{IMGDIR}/replay.gif" alt="总贴数" style="position:relative; top:4px;">&nbsp;&nbsp;{lang index_posts}: <em>$posts</em><span class="pipe"> | </span><img src="{IMGDIR}/members.gif" alt="会员数" style="position:relative; top:4px;">&nbsp;&nbsp;{lang index_members}: <em>$_G['cache']['userstats'

juicy888 发表于 2014-4-15 16:22:45

这么好,必须要顶一下啊{:soso_e179:}

qq84615244 发表于 2020-1-7 20:15:15

首页今日贴数、昨日贴数等美化

jun156816873 发表于 2011-3-18 14:06:25

这个我喜欢~谢谢了

gzwolfs 发表于 2011-3-18 16:37:38

这个不错,顶一下

wg45400633 发表于 2011-3-20 10:24:36

http://www.kuozhan.net/thread-2312-1-1.html

大学生拼客 发表于 2011-3-25 13:04:17

不错 下来看看 谢谢分享咯

jackton 发表于 2011-4-3 14:15:48

我来测试下

991899783 发表于 2011-4-4 16:47:36

看看怎么样

Mynamebh 发表于 2011-4-13 21:54:13

顶顶更健康

fonuchan 发表于 2011-4-27 11:11:33

這個美化好棒 收下來{:4_88:}

LoveD☆Date 发表于 2011-4-29 02:19:53

{:4_112:}{:4_112:}{:4_112:}
页: [1] 2 3 4 5 6 7 8 9 10
查看完整版本: 首页今日贴数、昨日贴数等美化