[Resolved] How to create a dynamic link | take user to their own profile sub-tab

  • Participant
    Level: Enlightened
    Posts: 42
    r08 on #36477

    I am using the Profile Tab Pro plugin –

    I made some sub-tabs invisible (using CSS)

    I created a new sub-tab using the plugin.
    Now in the sub-tab content, I want to create a link to the other sub-tabs that I made hidden.

    But I’m having a hard time figuring out how to add a dynamic link. The link needs to be to the profile of the user that’s logged in, and take them to the sub-tab that the link is pointing to.

    If I copy the link of the sub-tab it will take ALL users to my profile and to the sub-tab on my profile. The link needs to take them to their own profile and to that sub-tab on their profile.

    Is there a way to do this?

  • Keymaster
    (BuddyDev Team)
    Posts: 23840
    Brajesh Singh on #36529

    BuddyPress offers a specia url( http://[example.com/membersdirectory-path%5D/me/” as the shortcut to access logged user’s profile url.

    The part in the bracket should be replaced by your own site’s members directory.

    Please see this reply for an explanation.

    Hope that helps.


You must be logged in to reply to this topic.

This topic is: resolved