View Full Version : User with most posts in X days??
I have searched to my little hearts content and haven't been able to find anything.
Is there a plugin or product I can download that can tell me what user posted the most amount in a certain number of days??
You could try doing a query, like from phpMyAdmin. Maybe like:
SELECT userid, username, COUNT( * ) AS count FROM post
WHERE visible =1 AND dateline >= UNIX_TIMESTAMP( CURDATE( ) - INTERVAL 7
DAY )
GROUP BY userid
ORDER BY count DESC
but of course that won't display it on a page if that's what you wanted to do. Also there are a lot of ways to specify the interval. I'm not sure I can tell you exactly what the above gives you (as far as exactly what the cutoff day and time would be). You would have to play with that if the exact time interval is important to you.
ETA: I think "CURDATE( ) - INTERVAL 7
DAY" with >= would actually include all posts in the 7 days before today, plus any posted today.
ozzy47
08-14-2014, 12:09 AM
You can also try this mod, https://vborg.vbsupport.ru/showthread.php?t=232021
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.