首页今日贴数、昨日贴数等美化
打开自己当前模板的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;"> {lang index_yesterday}: $postdata<span class="pipe"> | </span><img src="{IMGDIR}/replay.gif" alt="总贴数" style="position:relative; top:4px;"> {lang index_posts}: <em>$posts</em><span class="pipe"> | </span><img src="{IMGDIR}/members.gif" alt="会员数" style="position:relative; top:4px;"> {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;"> {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 *****
="chart">{lang index_today}: <em>$todayposts</em><span class="pipe"> | </span><img src="{IMGDIR}/yestoday.gif" alt="昨日贴数" style="position:relative; top:4px;"> {lang index_yesterday}: $postdata<span class="pipe"> | </span><img src="{IMGDIR}/replay.gif" alt="总贴数" style="position:relative; top:4px;"> {lang index_posts}: <em>$posts</em><span class="pipe"> | </span><img src="{IMGDIR}/members.gif" alt="会员数" style="position:relative; top:4px;"> {lang index_members}: <em>$_G['cache']['userstats' 这么好,必须要顶一下啊{:soso_e179:} 首页今日贴数、昨日贴数等美化 这个我喜欢~谢谢了 这个不错,顶一下 http://www.kuozhan.net/thread-2312-1-1.html 不错 下来看看 谢谢分享咯 我来测试下 看看怎么样 顶顶更健康 這個美化好棒 收下來{:4_88:} {:4_112:}{:4_112:}{:4_112:}