主页添加最新留言和战友博客
在主页(http://www.tdbzy.com/index.html)右边新增《最新留言》和《战友博客》。最新留言是取最新发表的战友留言,战友博客按照积分(orderby='scores')取会员头像和名称并链接进主页。
<div class="hot mt1">
<dl class="tbox">
<dt><strong>
<a href=http://www.tdbzy.com/plus/guestbook.php>最新留言</a></strong></dt>
<dd>
<ul class="c1 ico2">
{dede:loop table='dede_guestbook' sort='dtime' row='6' if=''}
<div style="width:236px;height:30px;overflow:hidden;margin:10px 0;color:#333"><div style="float:left;margin:0 5px;">
<img src='plus/guestbook/images/[field:face/].gif' height=30px width=30px border=0 /></div>
<b>[field:uname/]</b> 主题:[[field:title/]]<br/>
<a href=http://www.tdbzy.com/plus/guestbook.php>[field:msg/]</a></div>
{/dede:loop}
</ul>
</dd>
</dl>
</div>
<div class="hot mt1">
<dl class="tbox light" style="float: left;">
<dt class='light'><strong>战友博客</strong></dt>
<dd class='light'>
<ul class="e7">
{dede:memberlist orderby='scores' row=6 signlen=30}
<li><a href="[field:spaceurl/]" target="_blank"><img src="[field:face/]" alt='[field:spacename/]' width="52" height="52" />[field:uname/]</a></li> {/dede:memberlist}
</ul>
</dd>
</dl>
</div>