帝国cms调用discuz论坛今日发帖数

2013-11-21 00:14:52   来源:OK165.com   我要评论

帝国cms模板中如何调用discuz论坛的今日发帖数,如:“今日发帖:XXXX贴”。办法如下:


<table cellspacing="1" cellpadding="3">
[e:loop={"select tid,subject from cdb_threads order by tid desc limit 10",10,24,0}]
<tr><td>
<a href="/bbs/viewthread.php?tid=<?=$bqr[tid]?>" target="_blank"><?=$bqr[subject]?></a>
</td></tr>
[/e:loop]
</table>