MyBB Community Forums

Full Version: How to get username of the user?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

Can someone tell me what's the variable used to get the username of the user? I tried {$mybb->user[‘username’]} but it didn't return anything.

Thanks,
Combus
I use {$mybb->user['username']} and it works perfectly for me. What templates are you trying to use it in (I use it in header and portal templates).
That's what I was trying to use, but I realized I had some weird ticks instead of ' . Thanks for your fast reply Smile