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.
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
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!
@obewong,
Thanks for your input on this. Your insight has helped me tremendously.