![]() |
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" ? |
All times are GMT. The time now is 01:46 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:
|