@mgpix
14 years, 6 months ago
Hi,
I just tested the modified plugin on a classical WP install 2.9.2 with a bp-default child theme. Seems to work just fine.
Thanks !
Ok, I eventually found a workaround.
The below code will update firstname and lastname fields in the BP member profile upon user registration :
add_action('user_register', 'my_user_register'); function my_user_register($user_id) { if ( function_exists( 'xprofile_set_field_data' ) ) { $firstname = get_usermeta( $user_id, 'first_name' ); $lastname = get_usermeta( $user_id, 'last_name' ); xprofile_set_field_data( 'firstname', $user_id, $firstname ); xprofile_set_field_data( 'lastname', $user_id, $lastname ); } }
14 years, 7 months ago
Sadly, my coding skills are just above the sauropods’ ones
I might eventually create a plugin but It will take me time and won’t be really good
But who knows… in time of needs, one can learn pretty fast.
I’ll have a look at how to extend groups then.