PDA

View Full Version : How can you see how many posts users made in a day?


TNERatedEdge
03-29-2011, 11:22 PM
How can you see how many posts users made in a day?

Is there an option in the admin panel?

AusPhotography
03-30-2011, 12:09 AM
Custom select query...

SELECT Count(*) AS ActivityCount, `user`.`userid`, `user`.`username` AS Username
FROM `post`
INNER JOIN `user` ON `post`.`userid` = `user`.`userid`
WHERE FROM_UNIXTIME(`post`.`dateline`) >= DATE_SUB(NOW(), INTERVAL 1 DAY)
AND `post`.`visible` < 2
GROUP BY Username
ORDER BY ActivityCount DESC, Username ASC

TNERatedEdge
03-30-2011, 12:51 AM
how do I do that?

AusPhotography
03-31-2011, 12:51 AM
Directly to your database
-or-
AdminCP -> Maintenance -> Execute SQL Query