latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Registration Insert Middle Name Free Form

Home Forums Community Forum Registration Insert Middle Name Free Form

This topic contains 1 reply, has 2 voices. Last updated by  Bruce 3 years, 9 months ago.

Topic Author Topic
Posted: Monday Apr 8th, 2013 at 2:34 pm #46859
Devra
Username: devra

I am a Pro customer, and have custom fields on my registration form. But all our registrations are free.

We want to add Middle Name as an additional field, but we want Middle Name to appear at the top of the form between First and Last Name. It looks pretty lame to have it appear after the Last Name field. I found a great post by Raam ( #18272) at

https://www.s2member.com/forums/topic/custom-sign-up-page/

Here’s the applicable information about inserting Middle Name after First Name:

Here’s a tricky way around this:

1) Create a Custom Registration Field with the Unique ID middle_name. Set “Field Required?” to no and “Allow Profile Edits” to No (uneditable & totally invisible, both during & after registration)

2) Edit the necessary Pro-Form template in plugins/s2member-pro/includes/templates/forms/ and add the following between the First Name and Last Name sections:

<div id="s2member-pro-paypal-registration-form-middle-name-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-registration-form-div s2member-pro-paypal-form-middle-name-div s2member-pro-paypal-registration-form-middle-name-div">
	<label for="s2member-pro-paypal-registration-middle-name" id="s2member-pro-paypal-registration-form-middle-name-label" class="s2member-pro-paypal-form-middle-name-label s2member-pro-paypal-registration-form-middle-name-label">
		<span>Middle Name</span><br />
		
	</label>
</div>

Now when that Pro-Form loads and the user submits their Middle Name, it will be stored in the Middle Name custom registration field.

Raam gives the code to insert between first and last name on the PayPal Pro form. But I am not using PayPal or Authnet. The id on my registration form is “registerform”, which appears to come from WordPress, not s2Member. But I can’t find the right file to modify.

Can you tell me what module I should be modifying to insert a middle name between first and last on the registration form? Is this do-able? Thanks.

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Wednesday Apr 10th, 2013 at 1:05 am #47001
Bruce
Username: Bruce
Staff Member

Can you tell me what module I should be modifying to insert a middle name between first and last on the registration form? Is this do-able? Thanks.

You should use the instructions provided here for changing the template files: Pre Sale FAQs » Is it possible to modify s2Member® Pro Form templates?

For Paid Pro Forms, edit /s2member-pro/includes/templates/forms/paypal-checkout-form.php
For Free Registration Forms, edit /s2member-pro/includes/templates/forms/paypal-registration-form.php

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.