Black Friday: Grab all our memberships, plugins and themes at the biggest-ever 30% discount. Use coupon BLACKFRIDAY2025 before December 1st

BuddyDev

Search

[Resolved] [User profile tabs] Link to tab

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #36179

    Hello Hugo,

    Please check the following functions

    
    // If you want to show link for displayed user 
    bp_displayed_user_domain()
    
    

    other

    
    
    // For logged user
    bp_loggedin_user_domain()
    
    //Specfic user
    bp_core_get_user_domain($user_id)
    

    Please let me know if it helps or not.

    Regards
    Ravi

  • Participant
    Level: Master
    Posts: 152
    Hugo Callens on #36184

    OK, I checked https://codex.buddypress.org/developer/bp_component/.
    But how can I create a link to a specific tab in the users’ profile? Do I need a custom function for that?

  • Keymaster
    (BuddyDev Team)
    Posts: 25231
    Brajesh Singh on #36193

    Hi Hugo,
    Do you want that for the logged users?
    If yes, you can use the following example.

    
    http://example.come/members/me/component/action/....
    
    

    Example, if your members directory is “http://example.com/members/” then you can link to the cpt be

    
    
    http://example.com/members/my_cpt/new-message
    
    

    You can use this syntax to link to any component screen of the logged user.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 1
    Thomas on #55908

    hello
    what if i want to create a link for both logged and not-logged users?
    thank you

  • Keymaster
    (BuddyDev Team)
    Posts: 25231
    Brajesh Singh on #55913

    Hi Thomas,
    Thank you for the question.

    Please open a new topic with details on what do you mean by create link for non logged in users and we will assist.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved