By: Ian Spence and gliderdad79
This is only for version 7.1 and greater
In /cache_builders/forum_stats.php
Find:
$smarty->assign("maxonline",$maxonline);
Add before:
$query = "
SELECT count(POST_ID)
FROM {$config['TABLE_PREFIX']}POSTS
WHERE POST_POSTED_TIME > ?
";
$sth = $dbh->do_placeholder_query( $query, array( $html->get_date() - 86400 ), __LINE__, __FILE__ );
list( $posts_24hrs ) = $dbh->fetch_array( $sth );
$smarty->assign("recentposts", $posts_24hrs );
In /languages/english/portal_islands.php
Find:
$ubbt_lang['TOP_POSTERS'] = "Top Posters";
Add after:
$ubbt_lang['POST_24HRS'] = "posts in the last 24hrs";
In /templates/default/island_forum_stats.tpl
Find:
<b>{$posts}</b> <?php echo $ubbt_lang['POSTS'] ?>
Add after:
<b>{$recentposts}</b> <?php echo $ubbt_lang['POST_24HRS'] ?>