MyBB Community Forums

Full Version: Username
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can i show a username of a forum user on another page off the forum????
Place this in your template:
{$mybb->user['username']}
You can use the variable {$mybb->user['username']} in the templates to show the name of the current user.
Thanks for the help, but i mean on a page not part of the forum
Ha did it myself Toungue it looks easy but i started php like 2 weeks ago lol.
<?php
chdir('forums'); // path to MyBB
require './global.php';
?>
<html>
<body> 

<?php

echo "$mybbuser[username].";
?>


</body>

</html>