Skip to:
Content
Pages
Categories
Search
Top
Bottom

User-Profile-Edit Link for bbpress

  • @stoeffel-media

    Participant

    Hello everyone.

    I already searched for my problem but couldnt find any working solution for my bbpress 2.0.2.

    Since there is no direct link for users to change their profile (not good), therefore I am searching to generate a link to put in a header or so.

    I only found solutions for older bbpress installations with user id (number) but in the new bbpress it looks like you need userNAMES.

    Can somebody paste me a working php code to display a profile-link? Thx!

Viewing 7 replies - 1 through 7 (of 7 total)
  • @lynq

    Participant

    I found this in the template files.

    <?php bbp_user_profile_edit_url(); ?>

    @stoeffel-media

    Participant

    I am not very good in php, how do I display this link? Do you have a code for me with echo function?, thx!

    @lynq

    Participant

    That should echo it out for you as well I think.

    If it doesn’t then you can just use echo in front of it. Might be a good idea to get to grips with a bit of PHP if you are looking at anymore customization.

    It is fairly easy to move things around and echo different bits out.

    echo bbp_user_profile_edit_url();

    That is it

    @stoeffel-media

    Participant

    <?php echo bbp_user_profile_edit_url(); ?> isnt working, no output at all.

    Any other suggestions? Cant be that difficult? Maybe someone from bbpress support can help?! :-)

    @lynq

    Participant

    I forgot you might need to grab the current user id, depending on where you are trying to use that code.

    <?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>

    I just tried it and it works perfectly in my header. Good luck.

    @stoeffel-media

    Participant

    Great, thats exactly what I was searching for. I guess this will also help other people…

    Thax lynq for your help!

    @lynq

    Participant

    No problem, sorry the slightly erratic replies, got there in the end though!

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