Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove fields from register page


  • guidobrasil
    Participant

    @guidobrasil

    Hi to you all,

    Deu to translation of the buddy press our users are getting quite confused while entering all the details. Even skilled users mix fields up and start complaining after registring that they cannot login as their password is not correct. In fact what I do see is that they username is not “correct” as they mix up the native “name” field from buddy press and the username field from wordpress. So here is what I would like to do but I am having difficulties to figure out how this to be done.

    This would be the registration form form wordpress with buddy press:

    1. Username — > I want to “hide this field”
    2. E-mail address –> visible
    3. Password –> visible
    4. Confirom password –> My customer wants to hide this (Although I do not think wise… but.. )
    5. Name –> I want to hide this as well (not 100% sure yet.. but I am going to ask anyway)

    It is of course a piece of cake to comment out these fields in the register.php but as expected this will give errors when someone is registering.

    So this is what I would like to do as I am aware of the fact that wordpress philosophy is to use username and password for registering and not only e-mail address.

    Clone the $_POST –> e-mail variable into the username field –> this would then provoke the username and e-mail be the same.
    Because I am hiding the e-mail confirmation e-mail address I have to clone also the “first” e-mail field to the “second” one as validation also is not going through if there are not two e-mails.

    There are quite some plugins for wordpress doing this trick, but because buddy press is installed they are not doing their job as should be as buddy press is overruling the registration process.

    Is there anyone who has better knowledge achieving this? I know it would be just a case of storing the post values to the correct variables in the “action” file of the form. Unfortunately WordPress is not “pure” PHP and I do not seem to be able to figure out where the “action” is going, in other words, where should I change the variables that should be send by the form and how to achieve that the validation of the form at the end of the register.php will ignore the “missing” fields.

    Hope that someone can help me out.

    Best regards,

  • The topic ‘Remove fields from register page’ is closed to new replies.
Skip to toolbar