Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] 单独设置(首页四格自带这个)今日发帖排行榜首页显示

[复制链接]
adminadam 发表于 2008-12-25 04:05:52 | 显示全部楼层 |阅读模式
插件发布
插件名称: 单独设置(首页四格自带这个)今日发帖排行榜首页显示
插件来源:
适用版本: Discuz! 7.0
语言编码: GBK简体 
最后更新时间:
插件作者: 不是本人
插件简介: 单独设置(首页四格自带这个)今日发帖排行榜首页显示

打开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-12-25 08:08:32 | 显示全部楼层
不错,沙发了
回复

使用道具 举报

liyaofei 发表于 2008-12-25 08:14:50 | 显示全部楼层
支持一下`
回复

使用道具 举报

广告 发表于 2008-12-25 10:54:09 | 显示全部楼层
这个是老滚论坛上的吧
回复

使用道具 举报

playba 发表于 2008-12-25 10:57:37 | 显示全部楼层
哇塞...又插入前10。。
回复

使用道具 举报

Chilsion秋辰 发表于 2008-12-25 11:12:00 | 显示全部楼层
不错,不错
回复

使用道具 举报

 楼主| adminadam 发表于 2008-12-26 14:54:13 | 显示全部楼层
呵呵  大家需要就好
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-18 19:45 , Processed in 0.119071 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表