Skip to:
Content
Pages
Categories
Search
Top
Bottom

Creating custom link in menu to profile page

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

  • Ann_Whitt_Wen
    Member

    @ann_whitt_wen

    I’ve also tried:
    /members/x-profile/
    /members/x-use/
    /members/loggedinuser/

    Is there a way to do this in the dashboard menu or do I have to go into the php?


    Narada Das
    Participant

    @oneearth

    I think Im after the same thing.

    I want to be able to create a link anywhere
    for logged in members to take them to their Profile page
    or their EditProfile page
    or even a specific tag in their EditProfile page
    or to the ChangeAvatar page.

    Is there a way to do this?
    Otherwise the only way for a member to access these pages is through the main menu?

    Thanks ~ DV


    drigosantos
    Member

    @drigosantos

    Hi! I’m having the same problem! I am two days ago on the Internet procuranda a solution and nothing!


    r-a-y
    Keymaster

    @r-a-y

    Currently, this isn’t possible to do in the dashboard, you have to manually add some template tags into your theme.

    Template tags can be found in the /plugins/buddypress/ directory. Look for files suffixed with -templatetags.php.

    I’ll get you started with a link to the logged in user’s profile page.

    Add this to your theme’s functions.php:
    `
    function my_profile_link() {
    global $bp;

    if ( $bp->loggedin_user->id )
    echo ‘loggedin_user->domain . $bp->profile->slug . ‘/”>Profile‘;
    }
    `

    Then add the following in your template:
    `
    if ( function_exists( ‘my_profile_link’ ) )
    my_profile_link();
    `

    The rest is up to you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Creating custom link in menu to profile page’ is closed to new replies.
Skip to toolbar