My post here demonstrates that your username now resides in my post text, too. Would you now consider that by far much more columns/tables would need to be addressed?exemplary1 wrote: Sat Feb 10, 2024 12:24 pmAre updating username & username_clean in table phpbb_users enough ?
function user_update_name()
, so just call that in a loop if you want to code. Updating textual usernames in post texts and private message texts is more difficult. Wiping all traces of a previous username needs talent.No it doesn't. Only the userid is there. The only table that would have be changed is the users table. Everything else looks up the username by id from there.AmigoJack wrote: Thu Feb 15, 2024 4:14 pmMy post here demonstrates that your username now resides in my post text, too.exemplary1 wrote: Sat Feb 10, 2024 12:24 pmAre updating username & username_clean in table phpbb_users enough ?
Yes, if there are no extension that can require the change also, but normally it should not be, or the extension is a fake because should manage users by ids maybe. But it depend, maybe.exemplary1 wrote: Sat Feb 10, 2024 12:24 pm If I want to update username name through sql query, how many tables need to be updated ?
Let's say there's username 'abc1', and I want to update it to 'abc'. Are updating username & username_clean in table phpbb_users enough ?
Code: Select all
mb_strtolower($anusername,'UTF-8');
Code: Select all
first_poster and last_poster are stored by name in the topic and forums table.
Code: Select all
mb_strtolower($anusername,'UTF-8');
I just asked about difference between username and username_clean , but I think my reply got lost somewhere. Thank you.axe70 wrote: Fri Feb 16, 2024 2:22 pm
so just beware that anyway the username_clean field need to be:as value for the username_clean (lowercase)Code: Select all
mb_strtolower($anusername,'UTF-8');
Code: Select all
https://www.......com/w3/forums/memberlist.php?mode=viewprofile&u=48&sid=
That's also not true. And never has been. Otherwise I wouldn't be able to search for the keyword
exemplary1
and get my own post as result. One doesn't quote with the username and phpBB then magically eliminates that written username to make it an ID. Go try it yourself, go inspect the database table content.