MyBB Community Forums

Full Version: How to display logged user's username?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
For example if I wanted to create a link that would display the username of the user who is logged in , who would view that link.

something like this :


<?php echo 'www.example.com/$username'; ?>

, i rmembered , it's {username}
<a href="member.php?action=profile">{$mybb->user['username']}</a>