將以下代碼加到首頁模板里面
<table>
[e:loop={'SELECT news . * FROM phome_enewsmember member INNER JOIN (SELECT userid, username, COUNT( userid ) AS total FROM phome_ecms_news WHERE ismember =1 GROUP BY userid)news WHERE member.userid = news.userid',10,24,0,'','total DESC'}]
<tr>
<td><?=$bqno?></td>
<td><?=$bqr[username]?></td>
<td><?=$bqr[total]?></td>
</tr>
[/e:loop]
</table>
注:調用的是會員組id為1的會員發布的新聞數據表數量排序