In functions.php find:
PHP Code:
// global options
global $showdeficon,$displayemails,$enablepms,$allowsignatures,$wordwrap,$dateformat,$timeformat,$logip,$replacewords,$postsperday,$avatarenabled,$registereddateformat,$viewattachedimages;
And replace with;
PHP Code:
// global options
global $showdeficon,$displayemails,$enablepms,$allowsignatures,$wordwrap,$dateformat,$timeformat,$logip,$replacewords,$postsperday,$avatarenabled,$registereddateformat,$viewattachedimages,$DB_site;
Then find:
PHP Code:
$post[postdate]=vbdate($dateformat,$post[dateline]);
$post[posttime]=vbdate($timeformat,$post[dateline]);
Add after:
PHP Code:
$singleforum=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post WHERE forumid=X AND postuserid=$post[userid]');
$post[sfcount]=number_format($singleforum['posts']);
Remember to change X to the forumid with the posts in you want to count and add $post[sfcount] in the postbit template.
This ISN'T the best way to do this, as it adds 1 query for each post in the thread, I expect someone can come up with a more efficent way.