![]() |
Renaming a member?
How can I easily rename a member? I saw there's a name item, but I'm not sure if it even works since I saw in the items function file it's kinda blank. I'll go ahead and test it out anyway though.
But wouldn't it just be replacing the member's current name for the one they choose? Could I manually inject a few SQL queries into the database for the tables that have member names? I'm not sure how the queries would have to be formatted and I'm scared to experiment. :< Anyone know? |
I think this is all:
Code:
UPDATE `adopts_friend_requests` SET `fromuser` = "NEW_USERNAME_HERE" WHERE `fromuser` = "OLD_USERNAME_HERE"; This doesn't cover forum stuff, however. |
Thank you so much! Exactly what I needed. I found a few more needing to be included, like adopts_folders_messages and adopts_pounds. There might've been one more I'm forgetting about because I didn't need to include it since the member wasn't in it lol.
For the forum, in case anyone else needs this, these are the only tables I think that needed to be included. Luckily most of them just store the user's ID: Code:
UPDATE `mybb_forums` SET `lastposter` = "newname" WHERE `lastposter` = "oldname"; |
There are also columns from four tables that you may need to change too:
Code:
table prefix_folder_messages: two columns(`fromuser`, `touser`) |
Huhh..
My member whose name I changed (with help from this thread) can't login to her account after logging out. The error message she gets is that the password is wrong or not related to the account. Was there something I missed that's causing this? I wonder if changing her username back to the original would fix it... :desudesudesu: Her forum account works fine. EDIT: Nvm! She managed to reset her password so I think it's okay lol |
All times are GMT -5. The time now is 01:15 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.