PDA

View Full Version : when you make a forum private...


diesel08
08-16-2005, 09:13 AM
when you make a forum private on forumhome it shows POSTS and THREADS as 0... how can i change this to -- instead.. and say PLEASE LOG IN instead of PRIVATE...

Andreas
08-16-2005, 09:50 AM
ACP / vBulletin Options / vBulletin Options / Forum Listings Display Options / Show Private Forums = Yes

Hook: forumbit_display

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';
}

diesel08
08-16-2005, 11:20 AM
thankyou but i dont understand where:

Hook: forumbit_display

is....?

Andreas
08-16-2005, 07:51 PM
ACP / Plugin System / Add Plugin