Skip to:
Content
Pages
Categories
Search
Top
Bottom

Sidebar profile data


  • skateage
    Participant

    @skateage

    Hello buddypress.

    Im trying to figure out how i can add links to the sidebar under the users name image and “logout button”. I understand how to make conditional(if user is logged in ect..) php but i am having some trouble with the buddypress loop.

    What i would like to add are some links that do the following:
    View profile – Link to the user’s profile
    Edit profile – takes user to his/her edit profile page
    Change Picture – Link to change profile picture
    My Favorites – Takes users to activities that they have favorited
    …and possibly more.

    website – http://www.skateage.com

    Please help me understand the loop so that i can make links to these functions. I have read through all of the buddypress documentation on buddypress dot org but any external doc/tutorials would be awesome.

    Thanks in advance!

Viewing 1 replies (of 1 total)

  • Virtuali
    Participant

    @gunju2221

    Not really in the forums-loop, more if you want to add it under the widget, go into your sidebar.php.

    These $bp-global strings are always available for use, in your case here: https://codex.buddypress.org/developer-docs/the-bp-global/

    so where you want the links to appear (view profile, etc) , you will need to add the strings `$bp->loggedin_user->domain`

    So:

    `<a href="/profile/edit”>Edit Your Profile`

Viewing 1 replies (of 1 total)
  • The topic ‘Sidebar profile data’ is closed to new replies.
Skip to toolbar