PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Multiple User Registration

  1. I'm using a WP Plugin - http://wordpress.org/extend/plugins/allow-multiple-accounts/ - in order to allow Users to register multiple usernames with 1 e-mail address.

    I'm also using GF Registration plugin to register a user when he submits his 1st article.

    The WP plugin works 100% but if I complete the GF Form it tells me the e-mail address already exists. This means that GF is overriding the WP plugin script.

    Is there any way I can turn of the GF option to check if the e-mail already exist. In my case the user must be able to create several usernames with 1 email address

    Posted 12 years ago on Monday July 25, 2011 | Permalink
  2. Hi Jacquez, interesting plugin. For now, you should be able to override the validation failure with the gform_user_registration_validation hook:

    http://www.gravityhelp.com/documentation/page/Gform_user_registration_validation

    I will take a look at this plugin and see what would be involved for a more elegant solution.

    Posted 12 years ago on Monday July 25, 2011 | Permalink
  3. Hi David,
    I tried with Gform_user_registration_validation hook but its not working to disable the check for existence of email address.

    When I looked at userregistration.php, I noticed that the check for existence of email address is done much before this hook is called.

    Line no 1689 ($email_exists = email_exists($user_email);) and line no 1714 (if($email_exists)) is where email address is checked but the hook is executed later at line number 1724 ($form = apply_filters('gform_user_registration_validation', $form, $config, $pagenum);).
    So email validation will always trigger

    Any suggestion how to override the check for existence of email address without making changes in userregistration.php

    Posted 12 years ago on Monday August 8, 2011 | Permalink
  4. Hi Jacquez,

    You are correct that the email validation will always happen, but using the gform_user_registration_validation hook, you can override the default validation for any field. I downloaded the plugin and was able to get it working on my localhost with the following snippet. Paste this in your theme's functions.php file and be sure to update the form ID as specified in the code:

    http://pastie.org/2339194

    Let me know how it goes. :)

    Posted 12 years ago on Monday August 8, 2011 | Permalink
  5. Thanks David
    Worked :)
    Appreciate your help

    Posted 12 years ago on Monday August 8, 2011 | Permalink

This topic has been resolved and has been closed to new replies.