打开index.php
查找:
$newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
后面加:
$tomonth=date(n);
$todate=date(j);
$toyear=date(Y);
$time=mktime(0,0,0,$tomonth,$todate,$toyear);
$query=$db->query("select count(pid) as num,authorid,author from $tablepre"."posts where dateline>=$time group by authorid order by num desc limit 0,10");
while($result=$db->fetch_array($query)){
$poststar.="<a href=space.php?uid=".$result[authorid].">".cutstr($result[author],10)."</a> <font color=red>[".$result[num]."]</font> ";
}
解释:
其中limit 0,10");10为显示会员人数,[author],10).10为会员ID字符
打开discuz.htm
查找:
第一个
<!--{if empty($gid) && $announcements}-->
上面添加:
<div class="popupmenu_popup">今日发帖排行榜:$poststar</div><br />
完毕 |