I did something similar as a change for the "today's active topics" link. I noticed how it didn't actually show today's active topics, but rather showed the topics from the last 24 hours. Here's the change I made in search.php:
Find this:
$datesql=" AND thread.lastpost>=".(time()-24*60*60);
Replace with this:
$datesql=" AND thread.lastpost>=".(mktime(0,0,0,date("m"), date("d"), date("Y")));
|