PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Do Multiple Users Require Unique Email Addresses?

s2Member Plugin. A Membership plugin for WordPress®.

Do Multiple Users Require Unique Email Addresses?

Postby SWAlarry » July 4th, 2010, 10:34 pm

[Since posting this question, I understand why unique email addresses are required. My challenge remains the same... pre-populating form with an email address of the employer that purchases a training product. What problem is caused if a logged-in user attempts to access a download link that was purchased for a single page download product. Is that possible? Could I simply place the page under protection so you would have to be a logged-in user to access the purchased download link? I understand that normally you would not want to place the single product download page as "protected" because a Customer could buy access and not be able to access the page to download the product they bought. The question is, could I do this without causing other issues?]

There seems to be a limitation that usernames must have a unique email address. Is there a way to change this and allow multiple users to be setup using a common email address? It seems I need to use a combination of a single page download link and a free membership. The IP address limitations will protest my product. I need to be able to pre-populate a form with the email address of my Customer that would buy access to the same product for multiple employees.

My product is a training program that is basically a Form with an embedded Video. Employers purchase access to this form, they send the link to thte employee, the employee watches the video & answers a few questions, on submission, the form is scored and the results are sent by email to the employer (with a copy of the email results to the webmaster).

The problem is how to pre-populate the form with the email address of the employer when the employee clicks the purchased link and opens the page with the form and email. If a user was logged into the wp site, I could pre-populate the form with the employer's email.

The easiest solution would be to have the employer set up a username and password and use the email address of the employer for the user email. There seems to be a limitation that usernames must have a unique email address. Is there a way to change this and allow multiple users with the same email address?
User avatar
SWAlarry
Registered User
Registered User
 
Posts: 3
Joined: June 13, 2010

Re: Do Multiple Users Require Unique Email Addresses?

Postby Jason Caldwell » July 8th, 2010, 5:55 am

Thanks for your inquiry.

Yes, you are correct. Every account MUST have a unique Username/Email Address in the system. There is no way around this. At least, not without breaking the WordPress User database structure. What I would suggest is selling Membership Access to the employers. When the employers fill out the form to have details sent to one of their employees, your form processor can also pass through the original User ID of the employer.

So let's say an Employer has an account with your site, and their WordPress User ID# is 928.

Now, a link goes out to one of their employees, and it looks like this:
Code: Select all
http://mysite.com/answer-questions/?employer=928

Your question/answer system, can now determine
who to send the emails to, using a code snippet like this one:
Code: Select all
<?php
$employer = new WP_User(928);
$employer_first_name = $employer->first_name;
$employer_last_name = $employer->last_name;
$employer_email = $employer->user_email;
?>
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Do Multiple Users Require Unique Email Addresses?

Postby chipcain » September 15th, 2010, 1:36 pm

This is as close as I come when doing a search to answer my two problems.

Question #1
Is there no legitimate way around the unique email issue. I ask again because it's been 2 months since the original poster to this question asked and we all know 2 mo0nths in Wordpress years is an eternity.

Question#2
This I'm sure is related to question #1 in that I wonder if there is a way to add users without an email address?

I am using this for a club membership process and several husband and wives use the same email and a few members don't want to share their email address with us.

Any help is appreciated.
User avatar
chipcain
Registered User
Registered User
 
Posts: 7
Joined: August 9, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 3 guests

cron