Great little hack. Not your fault but it took too long (8 seconds on the larger forums and this is in the middle of the night with a small load.. 140k posts, 700k total). A quick modification and the link is now only visible to admins, normal users don't get the link:
open index.php, find:
PHP Code:
eval("\$forumbits .= \"".gettemplate("forumhome_forumbit_level$depth$tempext")."\";");
above that add:
PHP Code:
// *HACK: FORUM POST COUNTS
if ($bbuserinfo[usergroupid]==6) {
$replycountlink="<a href=\"javascript:whoposts($forum[forumid])\">$forum[replycount]</a>";
} else {
$replycountlink="$forum[replycount]";
}
// *HACK : FORUM POST COUNTS
And then in the forumhome_forumbit_level1_post, etc templates, replace the link:
Code:
<a href="javascript:whoposts($forum[forumid])">$forum[replycount]</a>
with