// get number of posts today
$datecut=time()-(86400);
$getpoststoday=$DB_site->query_first("SELECT count(*) AS count FROM post WHERE dateline>='$datecut'");
$poststoday=$getpoststoday[count];
in index.php, right before
PHP Code:
// get newest member
Now you can use $poststoday anywhere in your forumhome template to show the number of posts today.