Skip to:
Content
Pages
Categories
Search
Top
Bottom

moving BP User menu to WP admin menu: how?

  • Profile photo of noise
    noise
    Participant

    @noise

    (I posted this in another form but I think it’s more appropriate here)

    Hey there – I’ve searched all through the form here and google’d but still can’t figure it out.

    I need to move the BP user menu (the one on the top right in the admin bar) to the WP admin menu (the one that runs vertically down the left – not the wp admin bar).

    We’ve already got a custom Admin theme going and know how to add top level tabs to the WP admin menu but can’t find the appropriate hook.

    I’ve been playing around with
    add_action( ‘admin_menu’, ‘bp_admin_bar_my_account_root()’ );
    but so far no luck.

    Looked at the plugins but they only seem to modify the menu’s that we’re trying to move.

    Any ideas?

    Thanks muchly

Viewing 2 replies - 1 through 2 (of 2 total)
  • Profile photo of noise
    noise
    Participant

    @noise

    Got an update as I saw others on the web trying to find a solution:

    The following will output the appropriate links when put in an admin page:

    
    <li><a href="" rel="nofollow">Profile</a></li>
    <li><a href="" rel="nofollow">Settings</a></li>
    <li><a href="" rel="nofollow">Friends</a></li>
    

    The following function puts a tab in the admin menu (this as a submenu under the profile.php) and that allows a url to be directly linked to it (as opposed to being launched from a admin page)

    
    
    function admin_menu_new_items() {
        global $submenu;
        $submenu['profile.php'][232] = array( 'Menu item name', 'edit_posts' , 'http://google.com' ); 
    } 
    
    add_action( 'admin_menu' , 'admin_menu_new_items' );
    
    So now just have to load the <code>bp_loggedin_user_domain().'profile/'

    into a variable I can put in the above string.

    Still trying to figure that one out.

    Profile photo of noise
    noise
    Participant

    @noise

    wow – for some reason the above got totally borked:

    the first <li> item should read "echo bp_loggedin_user_domain().'profile/'" in between the php tags

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘moving BP User menu to WP admin menu: how?’ is closed to new replies.