Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Private Forum script


so1o
Participant

@so1o

here is the plugin..

please note that the bb hook for initialization was change after the blix release (0.73). it was changed from ‘init’ to ‘bb_init’

function my_check_private_forum($test='') {

global $bb,$bb_current_user;

$login_page = $bb->path . 'bb-login.php';

if ($_SERVER['PHP_SELF'] != $login_page) {

if ( !$bb_current_user ) {

header('Location: ' . $bb->domain . $bb->path . 'bb-login.php');

}

}

}

add_action( 'bb_init', 'my_check_private_forum');

Skip to toolbar