discuz x3.2 用户24小时内发帖量统计代码

discuz教程
24小时内发布的正常状态的帖子量

//24小时内主题数量

$day_beforet = $_G[timestamp]-86400;

$oneday_threads = DB::result_first("select count(tid) from ".DB::table("forum_post")." where `first`=1 and `invisible`=0 and `dateline`>'$day_beforet' and `dateline`<'$_G[timestamp]'");

复制代码

$_G[timestamp],当前时间戳。

$_G[timestamp]-86400,24小时前的时间戳。

标签: