Skip to:
Content
Pages
Categories
Search
Top
Bottom

Button to userprofile page

  • Hi, I’d like to add a custom button(image) to my homepage that links directly to the current logged in user. Anyone can help me on this one ?

    I can’t seem to find the right syntax that can be used inside the href link on the button.

    tnx in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Here you go:

    <?php if(is_user_logged_in()) : ?>
    <a href="<?php echo bp_get_loggedin_user_link(); ?>"><img src="LINK TO YOUR BUTTON" alt="My Profile" /></a>
    <?php endif; ?>

    wow cool, that was fast !

    First class and thank you !

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

You must be logged in to reply to this topic.