kvener (@kvener)

Forum Replies Created

Viewing 1 replies (of 1 total)
  • @kvener

    Member

    Here is a solution I found…

    There is probably a better solution, but this fixes the going back to front page for blocked users…

    Add this code to bb-includes/functions.bb-core.php line 1183

    // If user blocked logout user and clear auth_cookie

    if ( $id = bb_get_current_user_info( ‘id’ ) ) {

    if( bb_get_usermeta( $id, ‘been_blocked’ ) === “1”) {

    bb_logout();

    bb_clear_auth_cookie();

    }

    }

Viewing 1 replies (of 1 total)