MyBB Community Forums
Change username correctly with external script? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Change username correctly with external script? (/thread-231421.html)



Change username correctly with external script? - Walter_Correa - 2021-02-25

How to change the user name with external script and update all records with the current user name?


RE: Change username correctly with external script? - Devilshakerz - 2021-02-26

See https://github.com/mybb/mybb/blob/mybb_1825/usercp.php#L1406-L1423 (array_merge() with other user data may be unnecessary).


RE: Change username correctly with external script? - Walter_Correa - 2021-02-26

(2021-02-26, 12:08 AM)Devilshakerz Wrote: See https://github.com/mybb/mybb/blob/mybb_1825/usercp.php#L1406-L1423 (array_merge() with other user data may be unnecessary).

Could you give me an example of how to do it?