Version: 1.00, by Kentaurus
Developer Last Online: Jul 2014
Version: 3.0.0
Rating:
Released: 01-17-2004
Last Update: Never
Installs: 24
No support by the author.
This hack adds to your forum home page the most active user
today, he is the user that has posted the most from 0:00 GMT
until the end of the day.
In your forum home page it appears something like:
The most active user in the forum is: Username!
Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Would there be any way to do this so it does not include certain usergroups?
I would like to use this hack, but it's fairly obvious at the moment that I would be the most active user on my forum as admin, followed cloesly behind by my moderators. I'd like to be able to use it but only with my registered users counting towards it.
Would there be any way to do this so it does not include certain usergroups?
I would like to use this hack, but it's fairly obvious at the moment that I would be the most active user on my forum as admin, followed cloesly behind by my moderators. I'd like to be able to use it but only with my registered users counting towards it.
This query:
Code:
$maxposter = $DB_site->query_first("SELECT user.username,user.userid,count(*) total FROM ".TABLE_PREFIX."user AS user,".TABLE_PREFIX."post AS post WHERE user.userid=post.userid AND post.dateline BETWEEN $start AND $end GROUP BY post.userid ORDER BY total DESC LIMIT 1");
change it to:
Code:
$maxposter = $DB_site->query_first("SELECT user.username,user.userid,count(*) total FROM ".TABLE_PREFIX."user AS user,".TABLE_PREFIX."post AS post WHERE user.userid=post.userid AND post.dateline BETWEEN $start AND $end AND usergroupid NOT IN (5,6) GROUP BY post.userid ORDER BY total DESC LIMIT 1");
Wouldn't this change actually work better because it would follow the server time like most other things do on the forumhome.
HTML Code:
// <!-- MOST ACTIVE MEMBER -->
$maxposter = $DB_site->query_first("
SELECT user.username,user.userid,count(*) AS total
FROM ".TABLE_PREFIX."user AS user,".TABLE_PREFIX."post AS post
WHERE user.userid=post.userid
AND post.dateline
AND usergroupid NOT IN (5,7)
And dateline >= $starttime
GROUP BY post.userid
ORDER BY total
DESC LIMIT 1
And does this include thread counts AND post counts? I'm trying to set up the percentage of posts this user has made out of the ones for that day. But I keep getting a divison by zero error (which I think i may have stopped, I'm still testing).