Please log in.
Please log in.
Please log in.
This shows groups, fields, options, plus new “How it saves Age Between” and “How BuddyPress saves avatars”.
| Field Name | Type | ID | Options | Diagnostics |
|---|---|---|---|---|
| Nickname | textbox | 1 | — | |
| Registration Date | textbox | 771 | — | |
| Number of Media | number | 755 | — | |
| Location | bds_location | 528 | — | |
| members type | member_type_radio | 26 | — | |
| Few words | textarea | 3 | — | |
| Preferences | checkbox | 295 |
| |
| Experience level | radio | 319 |
| |
| Accommodation | radio | 376 |
|
| Field Name | Type | ID | Options | Diagnostics |
|---|---|---|---|---|
| Age1 | datebox | 781 | — | 📅 Date/age field |
| Age | datebox | 670 | — | 📅 Date/age field |
| Sex | selectbox | 221 |
| |
| Sexuality | selectbox | 236 |
| |
| Body Type | selectbox | 228 |
| |
| Height | selectbox | 241 |
| |
| Smoking | radio | 380 |
| |
| Drinker | radio | 384 |
| |
| Ethnicity | radio | 388 |
|
| Field Name | Type | ID | Options | Diagnostics |
|---|---|---|---|---|
| Age2 | datebox | 777 | — | 📅 Date/age field |
| Partner Age | datebox | 671 | — | 📅 Date/age field |
| Partner Sex | selectbox | 396 |
| |
| Partner Sexuality | selectbox | 403 |
| |
| Partner Body type | selectbox | 412 |
| |
| Partner Height | selectbox | 427 |
| |
| Partner Smoking | radio | 481 |
| |
| Partner Drinking | radio | 485 |
| |
| Partner Ethnicity | radio | 520 |
|
| Field Name | Type | ID | Options | Diagnostics |
|---|---|---|---|---|
| Since_from | datebox | 778 | — | 📅 Date/age field |
| Type of Business | checkbox | 579 |
| |
| Site | web | 687 | — |
| Field Name | Type | ID | Options | Diagnostics |
|---|---|---|---|---|
| Age_between1 | textbox | 782 | — | |
| Looking For | checkbox | 2 |
| |
| Max Distance | number_minmax | 679 | — |
BuddyPress does NOT support "from/to" fields automatically.
It saves whatever text xprofile_set_field_data() receives.
33-55 (NO spaces)
// Save Age Between correctly
$from = (int) $_POST["age_between_from"];
$to = (int) $_POST["age_between_to"];
$value = "{$from}-{$to}";
xprofile_set_field_data( FIELD_ID, $user_id, $value );
✔ Your plugin already uses this format.
✔ This debug tool shows if BuddyPress actually stored it correctly.
BuddyPress does NOT save avatars in database. It saves files in:
/wp-content/uploads/buddypress/avatars/{user_id}/The core functions:
bp_core_avatar_handle_upload() — validates uploadbp_core_delete_existing_avatar() — deletes old avatar filesBP_Attachment_Avatar::generate_avatar() — creates thumbbp_core_fetch_avatar() — prints the avatar// How to save avatar programmatically bp_core_delete_existing_avatar([ "item_id" => $user_id, "object" => "user" ]); $bp_avatar = new BP_Attachment_Avatar(); // Pass $_FILES array and input name "avatar" $file = $bp_avatar->upload( $_FILES, "avatar", $user_id ); $bp_avatar->generate_avatar([ "item_id" => $user_id, "object" => "user", ]); bp_core_delete_avatar_cache( $user_id );
This matches exactly what your SFF Avatar Fly-In does.
End of diagnostics v3.
Please log in.
