Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display Username


  • Hempsworth
    Member

    @hempsworth

    Hi,

    How do I display the current users username, like it does at the top of these forums “Welcome, USERNAME!”

    I searched around, and looked in the “template-functions.php” file, but found nothing.

    Thanks

Viewing 1 replies (of 1 total)
  • <?php echo bb_get_current_user_info( 'name' ); ?>

    Drop that into HTML wherever you want it. :)

    The default theme puts a “Welcome, USER! View your profile (Log out)” at the top left of every page, right where the login box would be otherwise.

    Edit: strange, is the overflow: hidden property gone again?

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.