先看效果:
打开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 />
复制代码
[ 本帖最后由 拳头 于 2008-10-7 11:54 编辑 ] |