Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile link?

  • @leeppp222

    Member

    I have personalised my bbpress forum and want to add a link on the page to allow the user to edit their profile (I have removed the original, “Welcome….” section at the top)

    What do I need to link to for the page to redirect the user to their profile?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @_ck_

    Participant

    I think it will be something like this

    <?php echo '<a href="'.get_profile_tab_link( bb_get_current_user_info( 'id' ), "edit" ).'">edit your profile</a>' ?>

    (untested) the “edit” part is just a guess…

    get_user_profile_link(bb_get_current_user_info( 'id' )) will get the profile link for general stuff, not the edit tab.

    @leeppp222

    Member

    Cheers that seem to do the trick.

    One other question, what do I inset to get to http://mysite.com/forums/profile/USERNAME ??

    @leeppp222

    Member

    sorry – ignore the above – you’ve already told me – cheers for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar