MyBB Community Forums

Full Version: Username variable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sorry for such a simple question, but strangely I couldn't find an answer when I searched for it around here.

Um, how do you display the username of the user logged in in a template?

E.g. "Welcome back, [username]!"
That's in a language file, I don't want that. I just want to know how to print the username.
Try one of the following:
$mybb->user[username]
$mybbuser[username]
The second one works. Thanks.
an class call doesn't work in the templates (If I'm not mistaken), it will output Array..