Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Registration Mystery – how to use username instead of First/Last?


gogoplata
Participant

@gogoplata

The basics of what I did was edit bp-xprofile.php and removed these lines:

$sql[] = “INSERT INTO “. $bp . ” (

id, group_id, parent_id, type, name, description, is_required, field_order, option_order, order_by, is_public, can_delete

) VALUES (

1, 1, 0, ‘textbox’, ‘” . __( ‘Public Display Name’, ‘buddypress’) . “‘, ”, 1, 1, 0, ”, 1, 0

);”;

$sql[] = “INSERT INTO “. $bp . ” (

id, group_id, parent_id, type, name, description, is_required, field_order, option_order, order_by, is_public, can_delete

) VALUES (

2, 1, 0, ‘textbox’, ‘” . __( ‘Last Name’, ‘buddypress’) . “‘, ”, 1, 2, 0, ”, 1, 0

);”;

Then I went into my database and deleted those fields. Once those are gone BP defaults to using the username.

Skip to toolbar