Forums

user-edit.php: "display name publicly as" problem (4 posts)

  1. croila
    Member
    Posted 5 years ago #

    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

  2. moshu
    Member
    Posted 5 years ago #

    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.

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    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.

  4. croila
    Member
    Posted 5 years ago #

    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 :-(

Topic Closed

This topic has been closed to new replies.

About this Topic