Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Profile pages being redirected to signup page


theusurper
Participant

@theusurper

o and i think i have found the cause of the problem.. the member-theme selection in the buddy press options(sitewide admin) shows themes from my themese directory(the buddypresshome and other standard wpmu themes) instead of showing the buddypress-members theme. iv been checking the code and well i cant really place my finger on it..

function bp_core_get_member_themes() {

add_filter( 'theme_root', 'bp_core_set_member_theme_root' );

$themes = get_themes();

if ( $themes ) {

foreach ( $themes as $name => $values ) {

$member_themes[] = array(

'name' => $name,

'template' => $values

);

}

}

return $member_themes;

}

function bp_core_set_member_theme_root() {

return WP_CONTENT_DIR . '/member-themes';

}

function bp_core_set_member_theme_root_uri() {

return WP_CONTENT_URL . '/member-themes';

}

Skip to toolbar