ACP / vBulletin Options / vBulletin Options / Forum Listings Display Options / Show Private Forums = Yes
Hook: forumbit_display
PHP Code:
if ((($vbulletin->forumcache["$lastpostarray[$forumid]"]['lastpost'] > 0) AND !($lastpostforumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR (!($lastpostforumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) AND $lastpostinfo['lastposter'] != $vbulletin->userinfo['username'])) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']))
{
$forum['replycount'] = '---';
$forum['threadcount'] = '---';
$forum['lastpostinfo'] = 'Please log in';
}