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™

Using another form to pass registration data

s2Member Plugin. A Membership plugin for WordPress®.

Using another form to pass registration data

Postby ericrasch » August 18th, 2010, 10:24 pm

I would like to use my own form for creating the User Registration fields. More specifically, I'd like to use Gravity Forms to create the registration form, then pass that info into s2Member. I'm assuming I can't just directly submit my info into s2Member, but rather I can pass the data from the submitted Gravity Form into the s2Member registration page. I've seen Jason mention having your own form submit to /wp-login.php?action=register, which I can do in Gravity Forms, but it doesn't seem to actually pass any data through.

How do I set it up to pass the data to the s2Member registration?
User avatar
ericrasch
Registered User
Registered User
 
Posts: 1
Joined: August 18, 2010

Re: Using another form to pass registration data

Postby Jason Caldwell » August 27th, 2010, 12:05 pm

Hi Eric. Thanks for your patience.
I'm very sorry for the delayed response.

OK. This will work.
However, you'll need to prepare your Custom Fields under:
s2Member -> General Options -> Custom Registration Fields

Then, just submit the form to:
/wp-login.php?action=register

Your Custom Fields MUST be submitted with these variable names.
$_POST["ws_plugin__s2member_custom_reg_field_".$field_var]

If your Custom Field is:
Company Name

the field var is:
company_name
( e.g. $_POST["ws_plugin__s2member_custom_reg_field_company_name"] )

s2Member replaces all spaces with underscores.
~ 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: Using another form to pass registration data

Postby thedigitalfox » September 5th, 2010, 1:58 am

I would very much like to do this, is it possible to give some more details on how you make this happen?

Derek
thedigitalfox
Guest User
Guest User
 

Re: Using another form to pass registration data

Postby Jason Caldwell » September 7th, 2010, 8:21 pm

Hi Derek. Thanks for your inquiry.

There really isn't much to it.
You just create a form that submits POST variables to:
/wp-login.php?action=register

You can use your own existing form located at:
/wp-login.php?action=register
as a reference model if you like.

You may also want to have a look at this thread;
which covers some advanced topics:
viewtopic.php?f=4&t=657
~ 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


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron