呵呵,完美实现了.
这是我现在用的代码,欢迎大家参考!
<!--444444 最新评论-->
<div class="block yspace">
<div class="title"><div class="singleMenu">最新评论</div></div>
<!--{block name="spacenews" parameter="catid/103,104,105,140/replynum/1,500/order/i.lastpost DESC/limit/0,10/cachetime/900/showdetail/1/subjectlen/24/messagelen/55/cachename/news/tpl/data"}-->
<div class="content" id="newComment">
<span id="dlRemarkList">
<!--{loop $_SBLOCK[news] $nval}--><span>
<div class="newComment">
<!--{block name="userspace" parameter="uid/$cval[authorid]/limit/0,1/cachetime/900/cachename/theuser/tpl/data"}-->
<!--{loop $_SBLOCK[theuser] $uval}--><a href="$uval[url]" target="_blank"><img src="$uval[photo]" width="38" height="38" align='absmiddle' /></a>
<p class="author yellowLink"><a href='$uval[url]'><!--{/loop}-->
<!--{block name="spacecomment" parameter="type/news/itemid/$nval[itemid]/order/dateline DESC/limit/0,1/cachetime/900/subjectlen/24/messagelen/68/messagedot/1/cachename/pl/tpl/data"}-->
<!--{loop $_SBLOCK[pl] $cval}-->
$cval[author]</a> #date('Y-n-d H:i', $cval["dateline"])#</p>
<p class="articleTitle blueLink" style="font-size:13px;">评
<a href="$nval[url]" target=_blank>$nval[subject]</a>
</p>
<!--{/loop}-->
<p class="sayWhat">$cval[message]
<a href="$cval[url]" target=_blank>全文</a>
</p>
</div>
</span><br /><!--{/loop}--></span>
</div>
</div>
<!--444444 结束--> |