I used the formation theme with buddypress plugin and I inserted all this in the buddypress folder I created on the theme folder.
it supposed to echo but the also with the echo function the result is the same.
the function bp_member_profile_data(‘field=filedname’) belongs to budyypress.