The hidden posts addition to this hack doesn't work without the following change:
This:
PHP Code:
if (in_array($usergroupid, array(5, 6, 7))) {$secret_post=1;$visiblequery='';} else {$secret_post=0;$visiblequery=' AND visible=1 ';}
needs to be changed to this:
PHP Code:
if (in_array($bbuserinfo['usergroupid'], array(5, 6, 7))) {$secret_post=1;$visiblequery='';} else {$secret_post=0;$visiblequery=' AND visible=1 ';}
The $usergroupid needs to be $bbuserinfo['usergroupid'].