look for if (!$hideprivateforums) { $forumperms['canview']=1; } *above it add $trueperm['canview'] = $forumperms['canview'];