Search Results for 'profile fields'
-
Search Results
-
Hi there,
I’m still running Buddypress 1.0 since I couldn’t get Buddypress to upgrade without breaking too much. Anyway, I noticed a bug which causes profile fields not to be saved during registration. Editing a profile afterwards does work.
There are more topic on the forum, but no answers (eg. http://buddypress.org/forums/topic/additional-profile-field-data-not-saved-during-signup). Maybe it has something to do with localization (I use the Dutch version) since it doesn’t seem to happen to other people around here.
I dug into the Buddypress code and noticed this particular line in bp-xprofile-signup.php:
add_action( ‘wpmu_activate_user’, ‘xprofile_on_activate_user’, 1, 3 );
The xprofile_on_activate_user function is called on activating an account. This function saves the profile fields which are read from the wpmu user meta table (why aren’t they saved right away on registration?). The wpmu_activate_user action is executed in wpmu-functions.php (do_action(‘wpmu_activate_user’, $user_id, $password, $meta)
. When I add ‘xprofile_on_activate_user($user_id, $password, $meta)’ manually in that file (just for testing purposes) I get an error this function is undefined. I guess that might cause the troubles?How can I best fix this or what is causing this?
Topic: Profile Field adds Award
I’m looking for a way that depending on what my user selects in their profile, it will display a badge, or something in their profile.
Also, how may I access the profile fields when designing my profile. I mean, I don’t want all of the things to fall under that chart, I’d like to move a few of them into other locations.
Thanks
I used this code with BP 1.1.3 to retrieve the fields into my plugin admin options (bp-real-names).
I’m now trying to update it for BP 1.2; the problem is that the function bp_profile_group_has_fields() returns me false; I don’t understand why.
Any idea ?
Thanks !
if ( bp_has_profile() ) {
while ( bp_profile_groups() ) : bp_the_profile_group();
global $group;
$one_group = array();
$one_group[‘id’] = $group->id;
$one_group[‘name’] = $group->name;
$groups[ $group->id ] = $one_group;
print_r(“test”); //prints
if ( bp_profile_group_has_fields() ) {
print_r(“test2”); //do not print
while ( bp_profile_fields() ) : bp_the_profile_field();
if ( bp_field_has_data() ) {
global $field;
$one_field = array();
$one_field[‘id’] = $field->id;
$one_field[‘name’] = $field->name;
$fields[] = $one_field;
}
endwhile;
}
endwhile;
}
Hi, I’ve set up BuddyPress and profile fields for the sites members, is it possible for users to be able to search the site to find other users based on entries from the profile fields?
E.g. Find other members that have a certain hair colour or interest?
Thanks,
AJ
Hi
I am trying to hook into the Users first Login after Activation to have him fill out certain fields out of the XProfile Fields I define.
I dont want to push some mandatory extra fields in front of the user but would like to have a set filled out by them.
My “Dream” Scenario would be to get him to sign up with the bare minimum and then have him activate the account. immediately after activation the user receives a page (in form of a Jquery overlay) where the user logs in and then fills out a set of 3-5 more fields.
Is there a Hook in Buddypress that lets me grab the user at that state and call some custom functions?