I also use this hack . it works perfect for me.
I left away this part
PHP Code:
$invisible=$DB_site->query_first("SELECT COUNT(*) AS posts FROM post WHERE visible=0");
if ($invisible[posts]==0) {
$moderatedposts = "no posts";
} else {
$moderatedposts = "<b>$invisible[posts] posts(s)</b>";
}
$invisible=$DB_site->query_first("SELECT COUNT(*) AS attachments FROM attachment WHERE visible=0");
if ($invisible[attachments]==0) {
$moderatedattachments = "no attachments";
} else {
$moderatedattachments = "<b>$invisible[attachments] attachment(s)</b>";
as it took very long for my admincp to load (I have > 400.000 posts in my forums)
Tom