Quote:
Originally Posted by dave777
Great hack....
Is there anyway to make it count only the previous 24 hours? (top 10 posters for the day)
|
Nevermind, I worked out how to do this myself....
I simply added the following to forumdisplay.php:
$datecut=time()-(86400);
and then added "AND post.dateline>=$datecut" to the "where" line, like so:
WHERE forum.forumid=$forumid AND post.dateline>=$datecut
and it worked like a charm.
I also added this to the topposters template so the usernames were linked to their profiles:
<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$top[userid]">
(closed with a </a> after $top[username])