tpearl5
12-30-2013, 02:20 PM
I'm looking for something to allow me to view how many posts a member has posted by day/week/month.
Any ideas?
tpearl5
12-30-2013, 05:42 PM
nvm, I figured out a query that can be run...
SELECT COUNT(1) AS posts, FROM_UNIXTIME( dateline, '%Y-%m-%d' ) AS DATE FROM post WHERE userid =1 GROUP BY FROM_UNIXTIME(dateline, '%Y-%m-%d');
Just change the userid.
And if you want to count and group by month:
SELECT COUNT(1) AS posts, FROM_UNIXTIME( dateline, '%Y-%m' ) AS DATE FROM post WHERE userid =1 GROUP BY FROM_UNIXTIME(dateline, '%Y-%m');
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.