How to get username of the user? - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Extensions (https://community.mybb.com/forum-201.html) +--- Forum: Themes (https://community.mybb.com/forum-103.html) +---- Forum: Theme Support (https://community.mybb.com/forum-10.html) +---- Thread: How to get username of the user? (/thread-60440.html) |
How to get username of the user? - combus - 2009-11-30 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 RE: How to get username of the user? - Zash - 2009-11-30 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). RE: How to get username of the user? - combus - 2009-11-30 That's what I was trying to use, but I realized I had some weird ticks instead of ' . Thanks for your fast reply |