Skip to:
Content
Pages
Categories
Search
Top
Bottom

How do i get a link to edit profile?


  • Kokiri
    Participant

    @kokiri

    So I’m trying to implement a way to redirect users after registering or first time login to automatically go to their Buddypress profile Settings > General to edit their profile picture, cover photo and other profile details.

    Doing this so we can determine who is a spam bot and who is active.

    Can anyone help me? I’ve been trying codes all day long and so far no luck at getting someone’s username to show up in the link successfully.

    Example of the link I’m trying: https://example.com/kokiri/settings/general

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

  • thinlizzie
    Participant

    @thinlizzie

    @kokiri

    You can usually replace the username with “/me/” in a profile link to make it dynamically link to the current logged in user.
    So if that is what you want then in your example you would replace /kokiri/ with /me/

    Your link would then be …

    https://example.com/me/settings/general

    If that doesn’t work, you might try …

    https://example.com/members/me/settings/general


    Kokiri
    Participant

    @kokiri

    I’d rather keep the username in the link instead of “me” and we did rid of “members” in the link besides the member directory.


    thinlizzie
    Participant

    @thinlizzie

    Okay, I don’t know how to do it exactly as you want.
    The “me” method would be functionally the same.
    Any reason you require the actual username to be present?


    Kokiri
    Participant

    @kokiri

    Thanks for your input! It’s just the way we have our website procedures set up, and we prefer to keep it consistent across all user-related functions. Requiring the actual username is part of how we want things structured for better clarity and tracking on our end.

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