Forum Replies Created
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
jgadboisMember
Ok…yet one more update. I think I fixed the problem by editing the following code in eMember_misc_functions.php at around line 147.
$wp_user_id = username_exists($fields['user_name']);
if($wp_user_id)
{
$wp_user_info = array();
$wp_user_info['user_nicename'] = $_POST['user_name'];
$wp_user_info['display_name'] = $_POST['user_name'];
$wp_user_info['nickname'] = $_POST['user_name'];
$wp_user_info['user_email'] = $_POST['aemail'];
$wp_user_info['user_pass'] = $_POST['pwd'];
$wp_user_info['ID'] = $wp_user_id;
wp_update_user( $wp_user_info );
}
else
{
$should_create_wp_user = get_option('eMember_create_wp_user');
if($should_create_wp_user)
{
$wp_user_info = array();
$wp_user_info['user_nicename'] = $_POST['user_name'];
$wp_user_info['display_name'] = $_POST['user_name'];
$wp_user_info['nickname'] = $_POST['user_name'];
$wp_user_info['first_name'] = $_POST['afirstname'];
$wp_user_info['last_name'] = $_POST['alastname'];
$wp_user_id = wp_create_user($_POST['user_name'], $_POST['pwd'], $_POST['aemail']);
$wp_user_info['ID'] = $wp_user_id;
wp_update_user( $wp_user_info );
}
}jgadboisMemberSome additional information…i looked in the wp_options table and eMember_create_wp_user is set to 1
jgadboisMemberI think I have a related problem. I have “Automatically Create WordPress User:” checked off, but I do not get a wordpress user when someone signs up for an account. I do get an entry in the emember database table, but not in the wp_table. I have some other code and plugins that rely on the wordpress user so need this to work. Could I have something configured incorrectly, or is this a bug?
Thanks!
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)