Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: The Display Name stopped working

I am sure Micheal can fix this quickly, but maybe try this until he gets around to it:

<?php
/*
Plugin Name: Force Login
Description: No one can see your forums unless they are logged in.
Plugin URI: https://bbpress.org/forums/topic/117
Author: Michael D Adams
Author URI: http://blogwaffe.com/
Version: 0.7
*/
function force_login_init() {
if ( !bb_is_user_logged_in() && false === strpos($_SERVER['REQUEST_URI'], 'bb-login.php') ) {
if ( file_exists( BBPATH . 'my-templates/login.php' ) ) {
require( BBPATH . 'my-templates/kakumei/front-page.php' );
} else {
require( BBPATH . 'bb-templates/kakumei/front-page.php' );
}
exit;
}
}
add_action( 'bb_init', 'force_login_init' );
?>

I just hardcoded the new template directory. Not a long term fix. mdawaffe will have a fix soon enough!

Trent

Skip to toolbar