Skip to:
Content
Pages
Categories
Search
Top
Bottom

Direct link to edit profile


  • Redlo
    Participant

    @paramiweb

    Hello, I need to generate a direct link from an image so that the user who has accessed your account can directly go to the edit section of their profile.

    Thanks

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

  • vapvarun
    Participant

    @vapvarun

    <?php bp_members_component_link( 'profile', 'edit' ); ?>

    @paramiweb
    you can use above


    Redlo
    Participant

    @paramiweb

    Thanks, but I don’t know how to program. I have done the following

    <h3><a href="<?php bp_members_component_link( 'profile', 'edit' ); ?>">Actualiza tu perfil para ser mas visible</a></h3>

    but it doesn’t work for me. It takes me to the home page.

    Thank you again


    vapvarun
    Participant

    @vapvarun

    Seems like you are using outside single profile template
    You can try the following

    <h3><a href="<?php echo bp_core_get_user_domain( bp_loggedin_user_id() ) ?>/profile/edit">Edit Profile</a></h3>

    ref: http://hookr.io/plugins/buddypress/#index=g&search=loggedin_user


    shanebp
    Moderator

    @shanebp

    If you need to hard-code a profile url, you can use me in the url and it will take a logged-in user to their profile.

    For example: http://yoursite.com/members/me/
    Example url to profile edit: http://yoursite.com/members/me/profile/edit/group/1/


    Redlo
    Participant

    @paramiweb

    ¡¡ Perfect !!. Thank you very much 😉


    KatyRachel
    Participant

    @katyrachel

    thank you too!
    I have the same problem

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