MyBB Community Forums
Get user name every time they change - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Development (https://community.mybb.com/forum-68.html)
+---- Thread: Get user name every time they change (/thread-195765.html)



Get user name every time they change - Codie - 2016-07-17

I'm make a custom page for my forums and I can't figure out how to get the username to update if someone changes their username.

How would I go about doing this?

I've thought and researched this for a little bit now, so I decided I would ask here.

What I have tried:

{$mybb->user['username']} // This gets YOUR own username.


Nothing else seemed like it would make sense to use.


RE: Get user name every time they change - Destroy666 - 2016-07-19

I have no idea what you mean, $mybb->user['username'] stores current's user username available at the time when the PHP script is run. WHat exactly do you need?


RE: Get user name every time they change - Sazze - 2016-07-19

This maybe? http://community.mybb.com/mods.php?action=view&pid=76