Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] how can Modify Registration Form ?

  • Hello all, i am very glad to use BuddyPress in my site thanks BuddyPress
    Here i came b’coz i have some query in my site
    i am using WP 3.3.2 and BP 1.5.5
    i want to Modify Registration Page how can i do it ?
    i know Registration form is auto generate but i want to modify this form
    i want more text field e.g. mobile number field in Registration form
    how can i add this field ?

    and another thing can we set user’s email address is user’s username ?
    i mean where i register in site with any name i insert and it’s approve it when click on conform it through mail i don’t want like that b’coz some user are making fake username that wise i want to this functionality ?
    if it is possible ? to set user’s email address is his/her username ?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi websitevala,

    To add custom fields to your registration page, you’ll need to add xprofile fields. To do so in WP Backend, you should go / BuddyPress menu / Profile fields submenu

    And for the other thing, as you noticed emails are hidden, there might be a spam risk reason to that. And as a user, i wouldn’t like to have my email shown on my profile.. So i dont think it’s a good idea.

    hi thanks for fast reply
    i don’t understand you said
    did you understand my question ?
    i want extra text field in registration page ( create account page ) e.g. mobile number text field
    let me clear again what i want
    when i register on site there are four option display
    Account Details :
    1.Username
    2.email address
    3. choose password
    4. confirm password
    Profile details :
    1. Name
    there are text field already available ok
    i want more text field in Account Detail or Profile Details

    how can i add custom text field in Registration form ?

    and second is i want username is his/her email address
    when user login enter his/her username is email address
    how can i do this ?
    Thanks Again

    Ok, to set new fields for your members you should read the paragraph ‘Optional: Set Profile Fields’ of this tutorial
    http://wpmu.org/the-illustrated-guide-to-installing-and-setting-up-buddypress-1-5/

    if you mean login in with email, then you can try this interesting plugin https://wordpress.org/extend/plugins/wp-email-login/

    then you can add a function in the functions.php file of your active theme to change the label of the sidebar login form :

    add_action('bp_after_sidebar_login_form', 'bp_login_by_email_adapt_login_form');
    
    function bp_login_by_email_adapt_login_form() {
    ?>
    
    jQuery(document).ready(function($){
    usernameoremail = $("#sidebar-user-login").parent().html().replace(/Username/ig, 'Username or email' );
    $("#sidebar-user-login").parent().html(usernameoremail);
    });
    
    <?php
    }

    or if you’re using a child theme of BP-default theme, you can add/edit the template sidebar.php and replace the label for=sidebar-user-login by Username or email.


    Roger Coathup
    Participant

    @rogercoathup

    Using the email address as username is likely to run in to problems with the profile URL. BP uses the username the form that URL.

    Thanks for fast reply
    It’s works !!
    Thanks a lot imath and roger


    obewong
    Participant

    @obewong

    I think the page you are looking for is :

    \plugins\buddypress\bp-templates\bp-legacy\buddypress\members\register.php

    line 22.

    hope this helps.

    I agree, modifying a core file is bad, a template file is a little better 🙂

    Just gotta remember to keep those back ups!


    ToiBot
    Participant

    @toibot

    @obewong,

    Thanks for your input on this. Your insight has helped me tremendously.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] how can Modify Registration Form ?’ is closed to new replies.
Skip to toolbar