[buddypress-trac] [BuddyPress Trac] #5373: Removing requirement of Name profile field during registration

buddypress-trac noreply at wordpress.org
Mon Jun 6 00:19:53 UTC 2016


#5373: Removing requirement of Name profile field during registration
-------------------------------------+-----------------------------
 Reporter:  modemlooper              |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Component - Core         |     Version:  1.9.1
 Severity:  normal                   |  Resolution:
 Keywords:  2nd-opinion needs-patch  |
-------------------------------------+-----------------------------

Comment (by Sim2K):

 Add this into your CSS ...

 #register-page p { display: none;}
 #profile-edit-form .field_1 { display: none;}
 #signup_form .field_1 { display: none;}

 The register section is a sweet add on that removes the standard
 registration join up text as many spammers search for that phrase. The
 rest hides the name field from view on the registration page and the
 update page.

 Next add this Java script ....

 <script>
 document.getElementById("signup_username").onchange = function()
 {myFunction()};

 function myFunction() {
     var x = document.getElementById("signup_username");
     document.getElementById("field_1") .value = x.value
 }
 </script>

 .... this takes the username and populates the name field. So even though
 the user cant see the name filled it gets updated with whatever they put
 in the username field.

 Ideally you need to find a way to add it to just your registration field.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5373#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list