I added a nasty hack for my own site where I only have 1 private forum. This also prevents display of topics with ANY karma rating.
Quote:
while( $row = $xoopsDB->fetchArray($result) ){
if ( $row['forum_id'] == 14 ) { #NASTY HACK!!!
continue;
}
$sql = 'SELECT post_karma FROM '.$xoopsDB->prefix('bb_posts').' WHERE post_id = '.$row['topic_last_post_id'];
list($karma) = $xoopsDB->fetchRow($xoopsDB->query($sql))
if ($karma) {
continue;
}
I couldn't find the permissions flag in the SQL for the forums - but this works for now.