Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

  • Dennis Pedrie
    Participant

    @dennispedrie

    I finally fixed it by defining BP_ENABLE_USERNAME_COMPATIBILITY_MODE in wp-config.php


    Dennis Pedrie
    Participant

    @dennispedrie

    That redirects me home. It works fine when it’s given a username (/members/dpedrie/profile), but none of the links throughout all of buddypress give you the correct link.


    Dennis Pedrie
    Participant

    @dennispedrie

    But that only fixes the menu. Links on the profile page are still wrong.

    I think it is something to do with bp_core_get_username() asking for a Display Name rather than a User Login. Any ideas?

    Sorry, I promise I’m not being an ass with the bumping on purpose.


    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>';

Viewing 4 replies - 1 through 4 (of 4 total)
Skip to toolbar