Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile Nav and SubNav customization

  • I have been trying to get my head around customizing the Profile navigation system. Specifically, I want to move subnav menu items from under one tab, to another tab and have their linking functionaility intact.

    Example – I am working with:
    bp-activity-loader.php (sub nav: public / personal / friends / groups )
    bp-xprofile-loader.php (sub nav: public / edit / change avatar)

    basically (or rather, complicatedly? :) ) I want to remove some links from “bp-xprofile-loader.php” and place them within “bp-activity-loader.php”

    As my PHP skills are in the early stages at best (I can hack around a little to solve small problems etc) I have been able to at leat move a submenu from one into the other – but it’s link doesn’t work properly, as it is expecting itself to be inside of one area and not the other.

    I understand that the Profile Menu and subMenu system is complicated for a reason – but it seems rather over complicated to simply move subNav menu items around within this space.

    Further – I recognize that the “Activity page” poses a whole new issue as its own links are very specifi to the fact that it is all about “Activities” – which means the links I move into there do not work.

    Lets say I want to move this (from bp_activity_loader.php):
    `// Edit Profile’
    ` $sub_nav[] = array(
    ‘name’ => __( ‘Edit’, ‘buddypress’ ),
    ‘slug’ => ‘edit’,
    ‘parent_url’ => $profile_link,
    ‘parent_slug’ => $this->slug,
    ‘screen_function’ => ‘xprofile_screen_edit_profile’,
    ‘position’ => 20
    ); `

    Into bp_xprofile_loader.php

    I know there must be more code that needs to be moved over, but every time I think I know what that might be, I break the site.

    Any guidance, or links to tutorials or example codes would be really appreciated. I know I should not be working directly in these files, but I cannot find any other way around this to make that Profile navigation system the way I want it to be.

    Sincere thanks!

  • The topic ‘Profile Nav and SubNav customization’ is closed to new replies.
Skip to toolbar