OpenSanghaFoundation / OSF

Bug/Feature requests tracking and documentation managament
https://opensanghafoundation.org
0 stars 0 forks source link

Wordpress Does Not Allow Changing the Username of User's Profiles #51

Closed nowmichaelclark closed 2 months ago

nowmichaelclark commented 3 months ago

Describe the bug When trying to change a User's username, this is not allowed. Wordpress blocks this from happening for already registered users.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://opensanghafoundation.org/newsite/user/canada+five+wisdoms+temple/?um_action=edit
  2. Click on Username field image
  3. Type in a different name, Click update profile at the bottom of the page.
  4. See that the username has not been updated.

Expected behavior Typing in this box should change the username (or at least change the display name). If this name can not be changed or should not be changed then there is no reason to even show this text box as it will just confuse our volunteers who are doing data entry and may also confuse new users who are attempting to change their username/display name.

coiby commented 2 months ago

Solution

  1. WP Admin panel -> Ultimate Member -> Settings -> Users -> User Display Name -> Choose Nickname Screenshot_2024-07-10_21-01-13
  2. Add the pre-defined Nickname to the profile form and change the label from Nickname to Name. Screenshot_2024-07-10_21-04-21

Analysis

Wordpress itself doesn't allow changing username but we can display an user's nickname instead. And there is no need to worry a nickname could be empty because 1) Wordpress takes the username as the initial value of nickname 2) If an user uses a different name for nickname, the nickname will be reset to the username if he/she uses an empty value.

OSFOSF commented 2 months ago

i have alredy checkd that every nickname is filled in will convert from display name slowly over time On Wednesday, July 10, 2024 at 08:38:11 PM GMT+7, Coiby @.***> wrote:

Solution

Analysis

Wordpress itself doesn't allow changing username but we can display an user's nickname instead. And there is no need to worry a nickname could be empty because 1) Wordpress takes the username as the initial value of nickname 2) If an user uses a different name for nickname, the nickname will be reset to the username if he/she uses an empty value.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

OSFOSF commented 2 months ago

uaing nickname