Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration
You are here: Home

jgadbois

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 19, 2009 at 10:34 pm in reply to: Email addess ID is unavaliable… new user #16733
    jgadbois
    Member

    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 );
    }
    }

    December 19, 2009 at 10:16 pm in reply to: Email addess ID is unavaliable… new user #16732
    jgadbois
    Member

    Some additional information…i looked in the wp_options table and eMember_create_wp_user is set to 1

    December 19, 2009 at 10:01 pm in reply to: Email addess ID is unavaliable… new user #16731
    jgadbois
    Member

    I 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!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ