Community Support Forums — WordPress® ( Users Helping Users ) — 2011-05-03T01:43:54-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6205 2011-05-03T01:43:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6205&p=13972#p13972 <![CDATA[Re: Strange I have 2 First and Last name fields on reg page.]]>

Statistics: Posted by Cristián Lávaque — May 3rd, 2011, 1:43 am


]]>
2011-05-02T13:40:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6205&p=13951#p13951 <![CDATA[Re: Strange I have 2 First and Last name fields on reg page.]]>

Statistics: Posted by SuperG — May 2nd, 2011, 1:40 pm


]]>
2011-04-29T20:34:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6205&p=13839#p13839 <![CDATA[Re: Strange I have 2 First and Last name fields on reg page.]]>
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.

Statistics: Posted by Cristián Lávaque — April 29th, 2011, 8:34 pm


]]>
2011-04-29T19:09:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6205&p=13836#p13836 <![CDATA[Re: Strange I have 2 First and Last name fields on reg page.]]> Statistics: Posted by SuperG — April 29th, 2011, 7:09 pm


]]>
2011-04-29T17:23:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6205&p=13817#p13817 <![CDATA[Re: Strange I have 2 First and Last name fields on reg page.]]>

Statistics: Posted by Cristián Lávaque — April 29th, 2011, 5:23 pm


]]>
2011-04-29T16:49:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6205&p=13810#p13810 <![CDATA[Re: Strange I have 2 First and Last name fields on reg page.]]> Thanks for reporting back.
It is much appreciated.

Statistics: Posted by Jason Caldwell — April 29th, 2011, 4:49 pm


]]>
2011-04-29T16:45:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6205&p=13808#p13808 <![CDATA[Re: Strange I have 2 First and Last name fields on reg page.]]>
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-

Statistics: Posted by SuperG — April 29th, 2011, 4:45 pm


]]>
2011-04-29T13:18:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6205&p=13787#p13787 <![CDATA[Re: Strange I have 2 First and Last name fields on reg page.]]> 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:
# 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. */    

Statistics: Posted by Jason Caldwell — April 29th, 2011, 1:18 pm


]]>
2011-04-29T13:08:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6205&p=13784#p13784 <![CDATA[Re: Strange I have 2 First and Last name fields on reg page.]]> Statistics: Posted by SuperG — April 29th, 2011, 1:08 pm


]]>
2011-04-27T16:44:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6205&p=13613#p13613 <![CDATA[Re: Strange I have 2 First and Last name fields on reg page.]]>

Statistics: Posted by Cristián Lávaque — April 27th, 2011, 4:44 pm


]]>
2011-04-27T13:43:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6205&p=13574#p13574 <![CDATA[Re: Strange I have 2 First and Last name fields on reg page.]]>

Statistics: Posted by SuperG — April 27th, 2011, 1:43 pm


]]>
2011-04-26T21:23:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6205&p=13478#p13478 <![CDATA[Re: Strange I have 2 First and Last name fields on reg page.]]>
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. :)

Statistics: Posted by Cristián Lávaque — April 26th, 2011, 9:23 pm


]]>
2011-04-26T13:43:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6205&p=13463#p13463 <![CDATA[Re: Strange I have 2 First and Last name fields on reg page.]]>
Thanks -G-

Statistics: Posted by SuperG — April 26th, 2011, 1:43 pm


]]>
2011-04-26T13:23:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6205&p=13452#p13452 <![CDATA[Re: Strange I have 2 First and Last name fields on reg page.]]>
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?

Statistics: Posted by theone — April 26th, 2011, 1:23 pm


]]>
2011-04-26T13:13:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6205&p=13451#p13451 <![CDATA[Strange I have 2 First and Last name fields on reg page.]]> and still have the ones at the top of the form .. any tips ?

Thanks - G-
Image

Statistics: Posted by SuperG — April 26th, 2011, 1:13 pm


]]>