Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add a profile link to navigation bar

  • Avatar of charlietech
    charlietech
    Participant

    @charlietech

    I want to have the profile tab in my navigation bar and Ive tried the profile menu plugin but it didnt work for 3.4.1. Can someone help me with a code or steps in adding it to my site?

Viewing 25 replies - 1 through 25 (of 36 total)
  • Avatar of danpkraus
    danpkraus
    Participant

    @danpkraus

    Depending on how you have your navigation set up you could add the ‘Profile’ page to your nav menu using the WordPress menus interface. I have mine added to the ‘primary’ menu and it shows up :) Hope this helps.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    The plugin works great. Please read the install instructions. You need to edit code in header.php.

    @danpkraus You cannot add the member links via the wp admin menus because each user that logs in requires a different link.

    Avatar of charlietech
    charlietech
    Participant

    @charlietech

    Hey there,

    Thanks for the instructions because i never look at that when I installed the plugin. I did put the code in the navigation part and nothing happen. what do you suggest?

    Avatar of charlietech
    charlietech
    Participant

    @charlietech

    @modemlooper have you tried the profile menu plugin with 1.6 yet? I dont know what Im doing wrong but its not working on 1.6.

    Avatar of danpkraus
    danpkraus
    Participant

    @danpkraus

    @modemlooper sorry should have been more descriptive. I use one menu if a user is not logged in and another if they are, Like so:

    `
    if( !is_user_logged_in() ):
    wp_nav_menu( array( ‘container’ => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ‘bp_dtheme_main_nav’ ) );
    else:
    wp_nav_menu( array( ‘container’ => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘logged_in’ ) );
    endif;
    `

    This works fine for me unless I just haven’t run into any issues yet. Just started using BP.

    Avatar of danpkraus
    danpkraus
    Participant

    @danpkraus

    @modemlooper – I stand corrected, just noticed that the profile link is the only one I am not able to add. Just ignore my ignorance on this one. Sorry for any confusion. I literally just started with BP 2 days ago.

    Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    @modemlooper, @danpkraus, @charlietech

    You can enhance the WordPress menu system to support dynamic links (including BuddyPress profile links) – there is a specific filter that you need to use.

    Please take a look at this other recent forum thread, and the link on there which has all the details: http://buddypress.org/community/groups/creating-extending/forum/topic/how-to-create-new-dynamic-menu-including-bp-links/

    You’ll need to be a competent PHP developer, but if so, it’s relatively straightforward

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Cool, I’ll update plugin to use filter. When I created plugin I did not know about this filter

    Avatar of charlietech
    charlietech
    Participant

    @charlietech

    @modemlooper so I would use the code that @danpkraus recommended? are you going to update the plugin soon?

    Avatar of danpkraus
    danpkraus
    Participant

    @danpkraus

    @Roger Coathup thanks for pointing out that filter. I’ll check it out and see how it all fits together.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Updating plugin tonight

    Avatar of charlietech
    charlietech
    Participant

    @charlietech

    Cool! What if I wanted to use the members tab and change the name to profile…. how would i change the permalink to link to http://www.mysite.com/members/username?

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Go into the plugin file and edit term “profile”. Then remove the members tab linking to the member directory in the wordpress admin

    Fixed plugin is live.

    Avatar of charlietech
    charlietech
    Participant

    @charlietech

    Could you add the option to select what you want to show in the drop down menu? In the screenshot it show a drop down menu with activity, forum, groups,etc but what if I dont offer forum and groups on my site at? Just a request, Im happy that the plugin is getting updated.

    Thanks in advance!

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    If a component is deactivated then that drop down link is not shown.

    Avatar of charlietech
    charlietech
    Participant

    @charlietech

    Ok just making sure, I have updating the plugin but still no profile tab showing

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Works fine for me on 3 different sites. Are you using a custom theme? I only test my plugins on BP-default

    Avatar of charlietech
    charlietech
    Participant

    @charlietech

    Im using suffusion and buddypress

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Can you activate BP-default to test? It may be a issue that the filter is not working on a child theme

    Avatar of charlietech
    charlietech
    Participant

    @charlietech

    Yea I tried the default and it still didnt show. Please help cause I need this done asap.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    I really can’t say what it is if it doesn’t work in BP-default. I have it working as do others. There must have been an added a plugin or made a template file change that is blocking the plugin.

    Avatar of neuecreative
    neuecreative
    Participant

    @neuecreative

    Hello. I need a buddypress expert to finish a web project for us. if interested, please contact me at hectorg(at)neuecreative.com. Thank you!

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Actually I thought of something else. Are you using the wp admin menus to show a custom menu?

    Avatar of charlietech
    charlietech
    Participant

    @charlietech

    i deactivated all the plugins except buddypress and profile menu and still nothing.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Are you using a custom menu. Go to admin > appearance > menus and see if a custom menu is being used. Delete it if you are and test

Viewing 25 replies - 1 through 25 (of 36 total)

You must be logged in to reply to this topic.