For XF1 we had an add-on called Rolling message counter
For XF2 we have for example Most Posts
Today i want to make my own version of this and ask for ideas what could/should be implemented.
Possible functions:
Andy uses this select
Is this the right way? Is there an better way?
(visible is also missing)
2. Next step could be to show this at the users page
3. And i want to number of count be usable inside promotion.
If you have more ideas or know another add-on like this, let me know, please.
[WMTech] 5 Rolling Message Counter
Description: Did you ever want to know which members have not written for a long time and which members have been very active in your forum recently? This add-on is the solution for you! Rolling Message Counter is an add-on that adds five true...
xenforo.com
For XF2 we have for example Most Posts
Most posts
Premium upgrade: This XF2 add-on along with the entire collection can be purchased for $35.00 USD. Your Premium upgrade will allow you to download as many XF2 add-ons as you like for one year. Please see the entire collection located in the...
xenforo.com
Today i want to make my own version of this and ask for ideas what could/should be implemented.
Possible functions:
- count posts this month (real month, now November)
- last month (October)
- last two month (now Nov/Oct)
- last 30, 60, 90 days
- last 80, 360 days
Andy uses this select
Code:
// run query
$results = $db->fetchAll("
SELECT xf_post.user_id,
COUNT(*) AS mostPostsCount
FROM xf_post
INNER JOIN xf_user ON xf_user.user_id = xf_post.user_id
WHERE xf_post.post_date >= ?
AND xf_user.is_banned != 1
GROUP BY xf_post.user_id
ORDER BY mostPostsCount DESC
LIMIT ?
", array($timestamp, $limit));
Is this the right way? Is there an better way?
(visible is also missing)
2. Next step could be to show this at the users page
3. And i want to number of count be usable inside promotion.
If you have more ideas or know another add-on like this, let me know, please.