Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Profile URLs don't work properly.


Dennis Pedrie
Participant

@dennispedrie

I fixed the adminbar by changing line 72 of bp-core-adminbar.php to:

echo '<a id="bp-admin-' . $nav_item['css_id'] . '" href="' . str_replace( $bp->displayed_user->userdata->user_nicename, $bp->loggedin_user->userdata->user_login, $nav_item['link'] ) . '">' . $nav_item['name'] . '</a>';

And lines 79-82 to:

$link = str_replace( $bp->displayed_user->userdata->user_nicename, $bp->loggedin_user->userdata->user_login, $subnav_item['link'] );
$name = str_replace( $bp->displayed_user->userdata->user_login, $bp->loggedin_user->userdata->user_login, $subnav_item['name'] );
$alt = ( 0 == $sub_counter % 2 ) ? ' class="alt"' : '';
echo '<li' . $alt . '><a id="bp-admin-' . $subnav_item['css_id'] . '" href="' . $link . '">' . $name . '</a></li>';

Skip to toolbar