Skip to:
Content
Pages
Categories
Search
Top
Bottom

redirect wp user profile to bbpress profile – how?


  • bjstone906
    Participant

    @bjstone906

    When you’re logged in and go to leave a comment it says ‘Logged in as ‘user’. Log Out?’ I would like the word ‘user’ to link to the users bbpress profile thats set up instead of the wordpress profile in the backend.

    site: http://retreadwerks.com/wordpressNew/

    I know very little about php and how to make it work but I’m good with html and css.

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

  • bjstone906
    Participant

    @bjstone906

    I’ve found where the code lives! Now I don’t know how to change it to point to the bbpress profile (see below).

    &lt; ?php printf(__(&#039;Logged in as <a href="%1$s">%2$s.'), get_option('siteurl') . '/forums/users/', $user_identity); ?&gt; </a><a href="" title=""></a> 
    

    I’ve tried changing the href to

    href="http://retreadwerks.com/forums/users/%1$s" 
    

    but that’s not working either. I dont know what bbpress users for its profile url but I’ll keep looking. In the meantime does anyone have any suggestions?

    • This reply was modified 1 year, 11 months ago by  bjstone906.
    • This reply was modified 1 year, 11 months ago by  bjstone906.
    • This reply was modified 1 year, 11 months ago by  bjstone906.

    Hesam Bahrami (Genzo)
    Participant

    @genzographics

    Try this:

    `
    global $current_user;
    get_currentuserinfo();

    echo ‘You are logged in as ‘. $current_user->user_login . ‘‘;
    `


    Yoav1987
    Participant

    @yoav1987

    Is that the solution?

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

You must be logged in to reply to this topic.