Ideally you would have changed his name before deleting his account, but I know that Users don't tend to think like thatI removed a User per his request but he doesnt want his username still being shown, is there a way to rename his username even though I deleted his account?
UPDATE `xf_post` SET `username` = REPLACE(`username`,'Chris Deeming','A Deleted User');
UPDATE `xf_thread` SET `username` = REPLACE(`username`,'Chris Deeming','A Deleted User');
I removed a User per his request but he doesnt want his username still being shown, is there a way to rename his username even though I deleted his account?
I am in a similar situation and need to rename a deleted user, these queries are XF1 - 10 years old so wondering if they still apply/tablenames etc are the same, i only need to remove threads/posts names not worried about quotes etcIdeally you would have changed his name before deleting his account, but I know that Users don't tend to think like that
There is a way to do it via MySQL queries but I would proceed with caution. There are many places where the username is used. This query would change any posts username attributed to Chris Deeming to 'A Deleted User' but of course there's no guarantee that there won't still be traces of the old name elsewhere...
You may even want to wait to see if someone like Jake Bunce approves of this method or if there are any other ways...
Code:UPDATE `xf_post` SET `username` = REPLACE(`username`,'Chris Deeming','A Deleted User'); UPDATE `xf_thread` SET `username` = REPLACE(`username`,'Chris Deeming','A Deleted User');
We use essential cookies to make this site work, and optional cookies to enhance your experience.