Skip to:
Content
Pages
Categories
Search
Top
Bottom

Dynamic Profil Link


  • planetoffitness
    Participant

    @planetoffitness

    Hey guys

    I know, this topic has been solved already, but not for me…

    I nee a dynamic profil link which works for all users and just appears for logged in users.
    But i want to put a submenu below “my profil” (so the submenu also only appears for logged in users).

    I really need this!

    Thanks 🙂

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

  • wbcomdesigns
    Participant

    @wbcomdesigns

    Hi @planetoffitness,

    Try

    <a href="<?php echo bp_loggedin_user_domain(); ?>">My Profile</a>

    Thanks


    planetoffitness
    Participant

    @planetoffitness

    Hey, thanks a lot for your reply!

    Where should i put this code in to?
    functions.php?

    If i go to dashboard/design/menu/ and put this link into an individual link, it does not work…

    Cheers

    The code that @wmcomdesigns provided is PHP and intended to be used in a template.


    @planetoffitness
    There is built in dynamic link support for member profiles. e.g. try http://example.com/members/me/activity/mentions/ on your site (changing the domain obviously) to redirect to the logged-in user’s activity mentions page.


    valmirveklas
    Participant

    @valmirveklas

    Dude I also rode around for at least a week to find all the information to do my way. But I did and it’s working a lot. I’m going to code for you.
    The comments are in English, use google to translate.
    See example there on my platform soamigo.com.br

    See the ready code just put in the functions.php file of your theme.


    valmirveklas
    Participant

    @valmirveklas

    Dude I tried to send the code but it was not, if you know how I can send the code here just talk.

    The example site http://www.soamigo.com.br

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