DZ6.1会员在线列表修改为DZ7.0样式【即显示 在线用户 - 共 X 人在线,X位会员,X 位访客,最多X 人 发生在X】
Templates/default/discuz.htm
记事本打开discuz.htm
<!--{if empty($gid) && ($whosonlinestatus || $maxbdays)}-->
<div class="box" id="online">
<!--{if $whosonlinestatus}-->
<!--{if $detailstatus}-->
<span class="headactions"><a href="$indexname?showoldetails=no#online" title="{lang pm_close}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang pm_close}" /></a></span>
<h4>
<strong><a href="member.php?action=online">{lang onlinemember}</a></strong>
- <em>$onlinenum</em> {lang onlines}
- <em>$membercount</em> {lang index_members}(<em>$invisiblecount</em> {lang index_invisibles}),
<em>$guestcount</em> {lang index_guests}
- {lang index_mostonlines} <em>$onlineinfo[0]</em> {lang on} <em>$onlineinfo[1]</em>.
</h4>
<!--{else}-->
<span class="headactions"><a href="$indexname?showoldetails=yes#online" class="nobdr"><img src="{IMGDIR}/collapsed_yes.gif" alt="" /></a></span>
<h4>
<strong><a href="member.php?action=online">{lang onlinemember}</a></strong>
- {lang total} <em>$onlinenum</em> {lang onlines}
- {lang index_mostonlines} <em>$onlineinfo[0]</em> {lang on} <em>$onlineinfo[1]</em>.
</h4>
<!--{/if}-->
<!--{else}-->
<h4><strong><a href="member.php?action=online">{lang onlinemember}</a></strong></h4>
<!--{/if}-->
<!--{if $maxbdays}-->
<div id="bdayslist">
<!--{if $_DCACHE['birthdays_index']['todaysbdays']}--><a href="member.php?action=list&type=birthdays">{lang todays_birthdays}</a>: $_DCACHE[birthdays_index][todaysbdays]<!--{else}-->{lang todays_birthdays_none}<!--{/if}-->
</div>
<!--{/if}-->
<!--{if $whosonlinestatus}-->
<dl id="onlinelist">
<dt>$_DCACHE[onlinelist][legend]</dt>
<!--{if $detailstatus}-->
<dd>
<ul class="userlist">
<!--{if $whosonline}-->
<!--{loop $whosonline $key $online}-->
<li title="{lang time}: $online[lastactivity]{LF} {lang action}: $online[action] <!--{if $online['fid']}-->{LF}{lang forum}: $online[fid]<!--{/if}-->">
<img src="images/common/$online[icon]" alt="" />
<!--{if $online['uid']}-->
<a href="space.php?uid=$online[uid]">$online[username]</a>
<!--{else}-->
$online[username]
<!--{/if}-->
</li>
<!--{/loop}-->
<!--{else}-->
<li style="width: auto">{lang online_only_guests}</li>
<!--{/if}-->
</ul>
</dd>
<!--{/if}-->
</dl>
<!--{/if}-->
</div>
<!--{/if}-->
替换为
<!--{if empty($gid) && $whosonlinestatus}-->
<div class="mainbox list" id="online">
<!--{if $whosonlinestatus}-->
<!--{if $detailstatus}-->
<span class="headactions"><a href="$indexname?showoldetails=no#online" title="{lang pm_close}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang pm_close}" /></a></span>
<h3>
<strong><a href="member.php?action=online">{lang onlinemember}</a></strong>
- <em>$onlinenum</em> {lang onlines}
- <em>$membercount</em> {lang index_members}(<em>$invisiblecount</em> {lang index_invisibles}),
<em>$guestcount</em> {lang index_guests}
- {lang index_mostonlines} <em>$onlineinfo[0]</em> {lang on} <em>$onlineinfo[1]</em>.
</h3>
<!--{else}-->
<span class="headactions"><a href="$indexname?showoldetails=yes#online" class="nobdr"><img src="{IMGDIR}/collapsed_yes.gif" alt="" /></a></span>
<h3>
<strong><a href="member.php?action=online">{lang onlinemember}</a></strong>
- {lang total} <em>$onlinenum</em> {lang onlines}
- {lang index_mostonlines} <em>$onlineinfo[0]</em> {lang on} <em>$onlineinfo[1]</em>.
</h3>
<!--{/if}-->
<!--{else}-->
<h4><strong><a href="member.php?action=online">{lang onlinemember}</a></strong></h4>
<!--{/if}-->
<!--{if $whosonlinestatus && $detailstatus}-->
<dl id="onlinelist">
<dt>$_DCACHE[onlinelist][legend]</dt>
<!--{if $detailstatus}-->
<dd>
<ul class="s_clear">
<!--{if $whosonline}-->
<!--{loop $whosonline $key $online}-->
<li title="{lang time}: $online[lastactivity]{LF}{lang action}: $online[action] <!--{if $online['fid']}-->{LF}{lang forum}: $online[fid]<!--{/if}-->">
<img src="images/common/$online[icon]" alt="" />
<!--{if $online['uid']}-->
<a href="space.php?uid=$online[uid]">$online[username]</a>
<!--{else}-->
$online[username]
<!--{/if}-->
</li>
<!--{/loop}-->
<!--{else}-->
<li style="width: auto">{lang online_only_guests}</li>
<!--{/if}-->
</ul>
</dd>
<!--{/if}-->
</dl>
<!--{/if}-->
</div>
<!--{/if}-->
修改完后 保存 覆盖回去 后台更新缓存 即成