![]() |
[VB3 RC3] Most active user in the forums
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. |
Any screen shots?
|
Quote:
|
How is the most active determined? It shows the most active on my forums as a member that only has 108 posts. That's 900 posts shy of what I have.
|
Quote:
|
Oh ok. I guess I should read the first post more thoroughly. :p
|
Nice, but rather useless. Make it something more, maybe integrate into calendar, I don't now. . .
|
Quote:
|
Quote:
I think it's gonne be great - simple and probably more accurate to promote the active members of your forum ... [high]* Natch clicks install[/high] |
Nice im going to add it to my list of your hacks to install. ;)
|
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. |
Quote:
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"); 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 --> |
How about modifying this so it shows the # of posts the most active member has made during the time period?
Something like... Todays Most Active Member: Username with 125 Posts. |
It already does that. ;)
|
Mine doesn't do that. Mine just has the member name.
|
Try using this for the post count. ;)
Quote:
|
Thanks Bob. Works like a charm.
|
|
Quote:
Like "Most Active user ever was xxx with xxx in one day" ? |
I know this is probably a stupid question to you guys, but where do I put the $maxposter[total]? Do I change the user id, or username ones? Or just add this in somewhere? Thanks.
|
great hack ! any way to make the member bold with a red color ?
|
Code:
// Hack: most active user |
ok, yea it resets at 8pm how can I make it change at midnight?? thanks!
|
did i miss the thread where it said there was no more support for this hack?? :(
|
Well, I can help you set it up for whatever your server time in the Admin CP is set at but if you want anything other than that, I can't help you. ;)
|
yea i just need to set it to change at midnight vice changing at 8pm est which is what its changing at with the above code...
thanks! |
What is your setting in the Admin CP set at for server time?
|
GMT -5 Eastern US & Canada, Bogota, Lima
Thanks... |
thank you very much :)
nice hack :) |
/me installs this really uber cool hack which shows a member who registered last night as my most active user :S
|
Umm... did I miss something? Mine too changes at 8pm instead of midnight. How do you fix that?
|
Quote:
|
it seems to slow my index page down quite a bit when loading, and then it isn't showing it once it does load. I uninstalled and reinstalled it, in case I might have done it wrong - but still no show - any ideas on how to troubleshoot? It's not even showing up the phrase or anything...
(ps - tried to install it at www.skatemd.com/forums/index.php ) ps I am using 3.0.1 - maybe that is the issue? |
All times are GMT. The time now is 02:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|