discuz

推荐列表 站点导航

当前位置:首页 > 建站教程 > discuz >

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

来源:网络整理  作者:网络  发布时间:2020-12-10 14:25
24小时内发布的正常状态的帖子量 //24小时内主题数量 $day_beforet = $_G[timestamp]-86400; $oneday_threads = DB::result_first(select c...

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小时前的时间戳。

相关热词: discuz

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://www.juheyunku.com/jz/discuz/2203.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

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

2020-12-10 编辑:网络

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小时前的时间戳。

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://www.juheyunku.com/jz/discuz/2203.shtml

相关文章

风云图片

推荐阅读

返回discuz频道首页