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™

Strange I have 2 First and Last name fields on reg page.

s2Member Plugin. A Membership plugin for WordPress®.

Strange I have 2 First and Last name fields on reg page.

Postby SuperG » April 26th, 2011, 1:13 pm

I would like to remove the name fields at the bottom of my reg page ?
and still have the ones at the top of the form .. any tips ?

Thanks - G-
Image
User avatar
SuperG
Registered User
Registered User
 
Posts: 11
Joined: April 25, 2011

Re: Strange I have 2 First and Last name fields on reg page.

Postby theone » April 26th, 2011, 1:23 pm

Have you modified your form at all?

I don't have a password confirmation field on my registration pages......(though I certainly want to add it). Is this something that s2member supports?
User avatar
theone
Registered User
Registered User
 
Posts: 47
Joined: October 3, 2010

Re: Strange I have 2 First and Last name fields on reg page.

Postby SuperG » April 26th, 2011, 1:43 pm

Where do I edit ? Or hide the name fields in s2 member ?

Thanks -G-
User avatar
SuperG
Registered User
Registered User
 
Posts: 11
Joined: April 25, 2011

Re: Strange I have 2 First and Last name fields on reg page.

Postby Cristián Lávaque » April 26th, 2011, 9:23 pm

Hi G.

You don't seem to be using the standard registration form. What are you using? Maybe that's where you should be looking at to remove those duplicates.

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Strange I have 2 First and Last name fields on reg page.

Postby SuperG » April 27th, 2011, 1:43 pm

yeah - I installed Reg Redux with s2- and I really like the app for its password strength indicator -I removed the First Name - Last Name - from Redux and the name fields that are from s2 are still at the bottom .. :(
User avatar
SuperG
Registered User
Registered User
 
Posts: 11
Joined: April 25, 2011

Re: Strange I have 2 First and Last name fields on reg page.

Postby Cristián Lávaque » April 27th, 2011, 4:44 pm

I emailed Jason, let's wait for his input. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Strange I have 2 First and Last name fields on reg page.

Postby SuperG » April 29th, 2011, 1:08 pm

any updates on this issue ?
User avatar
SuperG
Registered User
Registered User
 
Posts: 11
Joined: April 25, 2011

Re: Strange I have 2 First and Last name fields on reg page.

Postby Jason Caldwell » April 29th, 2011, 1:18 pm

Thanks for the great question.
~ and thanks for bringing this to my attention Cristián.

At this time, there is no Hook/Filter to remove those default Fields easily. So the only way to remove the default registration fields, is to make direct code edits. You can remove the First/Last Name fields by editing this file: /s2member/includes/classes/custom-reg-fields.inc.php, at line #329.

Comment these lines out, like this:
Code: Select all
# eval ('foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;');
# do_action ("ws_plugin__s2member_during_custom_registration_fields_before_first_name", get_defined_vars ());
# unset ($__refs, $__v); /* Unset defined __refs, __v. */
# /**/
# echo '<p>' . "\n";
# echo '<label>' . "\n";
# echo '<span>First Name *</span><br />' . "\n";
# echo '<input aria-required="true" type="text" maxlength="100" name="ws_plugin__s2member_custom_reg_field_first_name" id="ws-plugin--s2member-custom-reg-field-first-name" class="ws-plugin--s2member-custom-reg-field" value="' . format_to_edit ($_p["ws_plugin__s2member_custom_reg_field_first_name"]) . '" tabindex="' . esc_attr (($tabindex = $tabindex + 10)) . '" />' . "\n";
# echo '</label>' . "\n";
# echo '</p>';
# /**/
# eval ('foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;');
# do_action ("ws_plugin__s2member_during_custom_registration_fields_after_first_name", get_defined_vars ());
# unset ($__refs, $__v); /* Unset defined __refs, __v. */
# /**/
# eval ('foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;');
# do_action ("ws_plugin__s2member_during_custom_registration_fields_before_last_name", get_defined_vars ());
# unset ($__refs, $__v); /* Unset defined __refs, __v. */
# /**/
# echo '<p>' . "\n";
# echo '<label>' . "\n";
# echo '<span>Last Name *</span><br />' . "\n";
# echo '<input aria-required="true" type="text" maxlength="100" name="ws_plugin__s2member_custom_reg_field_last_name" id="ws-plugin--s2member-custom-reg-field-last-name" class="ws-plugin--s2member-custom-reg-field" value="' . format_to_edit ($_p["ws_plugin__s2member_custom_reg_field_last_name"]) . '" tabindex="' . esc_attr (($tabindex = $tabindex + 10)) . '" />' . "\n";
# echo '</label>' . "\n";
# echo '</p>';
# /**/
# eval ('foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;');
# do_action ("ws_plugin__s2member_during_custom_registration_fields_after_last_name", get_defined_vars ());
# unset ($__refs, $__v); /* Unset defined __refs, __v. */    
~ 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: Strange I have 2 First and Last name fields on reg page.

Postby SuperG » April 29th, 2011, 4:45 pm

Wow !

Thanks worked like a charm ... :D
I was pulling out my hair trying to find the location of the custom field First Name - Last Name .

Thanks again for taking time out in your busy work schedule ...

Made my Weekend !

-G-
User avatar
SuperG
Registered User
Registered User
 
Posts: 11
Joined: April 25, 2011

Re: Strange I have 2 First and Last name fields on reg page.

Postby Jason Caldwell » April 29th, 2011, 4:49 pm

Very welcome.
Thanks for reporting back.
It is much appreciated.
~ 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: Strange I have 2 First and Last name fields on reg page.

Postby Cristián Lávaque » April 29th, 2011, 5:23 pm

G, as a reminder, keep in mind that you'll have to re-apply this after you update s2Member when new versions come out. ;)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Strange I have 2 First and Last name fields on reg page.

Postby SuperG » April 29th, 2011, 7:09 pm

Duoooohhhhh !
User avatar
SuperG
Registered User
Registered User
 
Posts: 11
Joined: April 25, 2011

Re: Strange I have 2 First and Last name fields on reg page.

Postby Cristián Lávaque » April 29th, 2011, 8:34 pm

SuperG wrote:Duoooohhhhh !


Yeah, because you're editing the file directly instead of using a hook, so when the update happens the file will be replaced with the new one without your edit.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Strange I have 2 First and Last name fields on reg page.

Postby SuperG » May 2nd, 2011, 1:40 pm

ohhh well thats life ! :)
User avatar
SuperG
Registered User
Registered User
 
Posts: 11
Joined: April 25, 2011

Re: Strange I have 2 First and Last name fields on reg page.

Postby Cristián Lávaque » May 3rd, 2011, 1:43 am

You said it. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron