Skip to:
Content
Pages
Categories
Search
Top
Bottom

Link to profile edit from wordpress header


  • airdrawndagger
    Member

    @airdrawndagger

    I’m calling the wp-headers in forum as advised in seamless integration thread. I need to add a link to the forum profile in the header as users get confused when they only see the admin tab for wordpress. I have the loginanywhere script, and need a link to the users profile edit somewhere in this code:

    `echo “<div class=’greeting’>nHej, “; echo $user_identity; echo “! Inställningar | “;

    echo “Logga utn</div>n”;`

    My forum is here: http://www.doublepeace.se/forum/

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

  • airdrawndagger
    Member

    @airdrawndagger

    Ok so it won’t type out the code the way I want to here. I did the backsticks thing… But I know someone out there will be able to help me out anyway :)


    _ck_
    Participant

    @_ck_

    Just an untested guess on my part but what you want is something like this?

    <a href="/forum/profile.php?id=<? echo $user_ID; ?>">your profile</a>


    airdrawndagger
    Member

    @airdrawndagger

    Thank you for the help! Actually I solved it just now, I had to put

    global $current_user; echo $current_user->ID;

    to get it right!

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