Wordpress Plugin - Default Display name

Discussion in 'Integration' started by schmitt, Apr 22, 2008.

  1. schmitt

    schmitt New Member

    Joined:
    Oct 26, 2007
    Messages:
    28
    I use the Wordpress plugin and it works great. There is one issue - I notice that when accounts are created in the Wordpress user database, the option "Display name publicly" is automatically set to Firstname Lastname. I would like to change that as many people who register want anonymity but do provide their real first and last name for billing purposes.

    Where in the plugin do I flip a bit to make this change? I am happy to hack the code.
  2. schmitt

    schmitt New Member

    Joined:
    Oct 26, 2007
    Messages:
    28
    Found it

    Found the code.
    Code:
    $this->query("INSERT INTO [db]users
    		(user_login, user_email, user_registered, user_pass, 
    		user_nicename, display_name)
    	VALUES
    		('$member[login]', '$member[email]', NOW(), '$pass',
    		'$member[login]', '$member[name_f] $member[name_l]')
    		");
    $id = mysql_insert_id($this->db->conn);
    $member[name_f] $member[name_l]

    must be replaced with

    $member[login]

    I could see adding a custom field to each subscriber allowing them to pick this themselves. That would be a nice enhancement, one that the wordpress admin offers. I know everything can't be done, but it would be good if Amember plugin functionality was harmonized with the Wordpress Admin capabilities.

Share This Page