jap i noticed that

.
the following counts the
posts (of the new posts and the posts in the last 24 hours)
Code:
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline>'$bbuserinfo[lastvisit]'");
$getdailypost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline>=".(time() - (24 * 60 *60 * $days)));
you can also count the new threads if you want..
Code:
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM thread WHERE dateline>'$bbuserinfo[lastvisit]'");
$getdailypost=$DB_site->query_first("SELECT count(*) AS posts FROM thread WHERE dateline>=".(time() - (24 * 60 *60 * $days)));
or another possibility.. count the threads ordered by last post
Code:
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM thread WHERE lastpost>'$bbuserinfo[lastvisit]'");
$getdailypost=$DB_site->query_first("SELECT count(*) AS posts FROM thread WHERE lastpost>=".(time() - (24 * 60 *60 * $days)));
Note: i didnt tested all queries.. pls ask if you get any errors

.