• Hi, I wonder if someone can help me please?

    I’m running a site that has got a couple of thousand subscribers, and I’m having a problem on the user-edit.php page.

    The user login name is always the person’s email address, so in effect “user name” and “email address” are the same.

    In the dropdown box “Display name publicly as”, the value is always defaulted to the username rather than the “display name”. The display name is actually the person’s forename and surname.

    There are two options appearing in the dropdown: the person’s username and display name, which are different. When I select the display name and then click the “update user” button on the page, the value of the dropdown keeps defaulting back to the username.

    When I look in the database at this point, the value in “display_name” field is correct, being the person’s forename then surname. But if I click the “update user” button on the page a second time, the value in “display_name” in the public_users table in the database changes to the username rather than the display name.

    I’m stumped as to how to fix this – can anyone advise?

    Much appreciated,
    Croila

Viewing 3 replies - 1 through 3 (of 3 total)
  • The user login name is always the person’s email address, so in effect “user name” and “email address” are the same.

    That means you have a hacked registration because in the default WP registration it doesn’t work like that.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    While I don’t know about older versions of WordPress, in 2.3.1, the first option in the display name dropdown box will always be the current display name setting, whatever it is.

    Older versions of WP may not have done this.

    Thread Starter croila

    (@croila)

    Otto – many thanks for this. I plan to upgrade to the most current version of WP when a particular plugin I rely on is upgraded and doesn’t conflict with it.

    Moshu – yes, unfortunately I had to hack it, as the client insisted that the usernames and email addresses must be one and the same. Not an ideal situation ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘user-edit.php: “display name publicly as” problem’ is closed to new replies.