Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Cannot access profile page

Sounds like no amount of messing with the template could save you from this fate. I have no idea why you would have done this, but have you replaced profile.php in the root of bb with a template file? This is what profile.php should look like. (Your custom templates should go in a my-templates/ folder in root.)

<?php
require_once('./bb-load.php');

bb_repermalink(); // The magic happens here.

if ( $self ) {
if ( strpos($self, '.php') !== false ) {
require($self);
} else {
require( BBPATH . 'profile-base.php' );
}
return;
}

$reg_time = strtotime( $user->user_registered );
$profile_info_keys = get_profile_info_keys();

if ( !isset( $_GET['updated'] ) )
$updated = false;
else
$updated = true;

do_action( 'bb_profile.php_pre_db', $user_id );

if ( isset($user->is_bozo) && $user->is_bozo && $user->ID != bb_get_current_user_info( 'id' ) && !bb_current_user_can( 'moderate' ) )
$profile_info_keys = array();

$posts = get_recent_user_replies( $user_id );
$threads = get_recent_user_threads( $user_id );

do_action( 'bb_profile.php', $user_id );

bb_load_template( 'profile.php', array('reg_time', 'profile_info_keys', 'updated', 'threads') );
?>

Skip to toolbar