Search Results for 'profile fields'
-
Search Results
-
For Buddypress user profiles, we create user profiles in WordPress by syncing with Active Directory. This creates new WP user profiles and also syncs data over to BP XProfile fields.
In configuring this process, I’ve learned that BP Visibility rules for XProfile fields are not set when user profiles are created via import from Active Directory; they are only set when an existing profile is manually edited and updated. Is there a way to fix or work around this, to get the Field Visibility rules applied to user profiles regardless of when/how the profiles are created (via import, etc.)?
Hi,
I have created a lot of additional profile fields for the members on my site and set up a members page with a search, but I was wondering if there were a way to create a multi-step search using the info from profile fields?
So first step could e.g. be Male/female, the next step could be Mentor/Mentee, etc. and then after finishing the multistep search only the members that meet the criteria would be shown?
This is the page: http://danwise.democrunch.dk/members/womens-network/
Hope you can help thanks!
Hi,
I have a community site build on buddypress. So far, all is going good but now my client wants extended profile field (Surname of user) to be shown in place of default first and last name of user. How can i do this ? Please helpHello,
I have a site that no longer displays member profiles.
I need to quickly migrate to a new site by exporting all buddypress members with xprofile fields.
I found a paid pugin, but too expensive for an association or old plugins.
Would you have a script to do this migration?
RegardsHi ,
I’m sure this is a simple fix but I’ve spent too much time on this issue that I’m ready to un install BuddyPress.
When a user logs in and select “View profile”, the page is bank. I does not display the user profile. When the selects edits it displays all fields correctly. Please note that I’ve integrated BuddyPress with s2 members. Basically, the user is allowed to edit profile but not view only…weird.
I can modify the code if only I know when it need to be done.
ThanksHi,
I want a tab in user profile where the user is able to fill some fields.I used “BuddyPress Xprofile Custom Field Types” to create that fields. But that fields appears in register page, so the registration is with many extra fields (awful).
I don’t want these fields to appear when an user wants to create an account, i want these extra fields i created appearing only in user profile, and then the user can fill there instead registration form.
Is this possible? If so, what i have to do?
Thanks so much in advance!
Hi
Is there a way (plugin or code) to limit the length of xprofile fields to a specific amount of characters?
Or better, what’s above + like a left character countdown.Thanks
I read that post before where they posted a link with a possible solution, but now the link it’s down…Anyone pls tell me a solution…
I have been hours searching for a solution…
https://buddypress.org/support/topic/how-to-limit-length-of-a-xprofile-field/
I have used this code here:
https://codex.buddypress.org/developer/loops-reference/the-members-loop/
and I want to filter users by certain criteria. The example for the bp-custom page is:
function my_custom_ids( $field_name, $field_value = '' ) { if ( empty( $field_name ) ) return ''; global $wpdb; $field_id = xprofile_get_field_id_from_name( $field_name ); if ( !empty( $field_id ) ) $query = "SELECT user_id FROM " . $wpdb->prefix . "bp_xprofile_data WHERE field_id = " . $field_id; else return ''; if ( $field_value != '' ) $query .= " AND value LIKE '%" . $field_value . "%'"; /* LIKE is slow. If you're sure the value has not been serialized, you can do this: $query .= " AND value = '" . $field_value . "'"; */ $custom_ids = $wpdb->get_col( $query ); if ( !empty( $custom_ids ) ) { // convert the array to a csv string $custom_ids_str = 'include=' . implode(",", $custom_ids); return $custom_ids_str; } else return ''; }
Example Usage: Get all members who have filled out the xprofile field ‘dogs’ and selected the value ‘poodles’.
<?php if ( bp_has_members( my_custom_ids( 'dogs', 'poodles' ) ) ) : ?>
How do I add more conditions to the dogs/poodles. What If I also want ‘birds’, ‘parrot’ as well as ‘dogs’, ‘poodles’ ?
I’ve added a category option to activity updates using the following code:
// Add Cat to Buddypress Activity Updates function my_custom_activity_meta_stuff( $content, $user_id, $activity_id ) { bp_activity_update_meta( $activity_id, 'bpcat', $_POST['bpcat'] ); } add_action( 'bp_activity_posted_update', 'my_custom_activity_meta_stuff', 10, 3 ); function add_bpcat_form_func(){ global $wpdb; $result = $wpdb->get_results ( "SELECT * FROM wp_bp_xprofile_fields WHERE id='2'" ); foreach ( $result as $print ) { ;?> <div class="bpcat <?php echo $print->id;?>"> In Search Of: <select name="bpcat" id="bpcat"> <option value="" disabled selected>Optional</option> <?php $options = $wpdb->get_results ( "SELECT * FROM wp_bp_xprofile_fields WHERE parent_id='$print->id'" ); foreach ( $options as $option ) { ;?> <option class="<?php echo $option->name;?>" name ="field_<?php echo $print->id;?>_match_any[]"value="<?php echo $option->name;?>"><?php echo $option->name;?></option> <?php } ;?> </select> </div> <?php } } ; ?> <?php add_action('bp_activity_post_form_options', 'add_bpcat_form_func');
What I’d like now is to be able to either filter the sitewide activity feed by category or include the activity metas in what is search by /common/search/search-form.php
In the extended profile fields, I’ve created a field that automatically pulls in data using the process described further below. This field is required and is located in the Base (Primary) group of profile fields.
The issue I’ve run into is that I’ve configured the field to be visible to “Only Me” and have selected the option to Enforce field visibility, but when I look at the public-facing profile page, this field is still visible to any other logged in user, regardless of role. (I have confirmed this by logging in with a subscriber level account and viewing the profile page.)
The profile fields data import process:
I am using the NADI plugin (https://active-directory-wp.com/) to automatically create and sync users and user data from company Active Directory database. This plugin has an add-on tool that will subsequently sync selected data from the user WordPress profile over to the BuddyPress profile.
Troubleshooting steps I’ve already completed:
1. I’ve deactivated all plugins other than BuddyPress; the “Only Me” profile is still visible on the public-facing user profile page for any logged in user. It doesn’t appear to be caused by a plugin conflict.
2. I’ve changed to a default WordPress bundled theme; again, the “Only Me” profile is still visible on the public-facing user profile page for any logged in user. It doesn’t appear to be caused by a theme conflict.WP Version: 5.2
BP Version: 4.3.0
NADI Plugin Version: 2.1.9 (Up to date)
NADI Add-on Version: 1.0.4 (Up to date)I hope I’ve provided enough information. I’m struggling to determine why this profile field that should only be visible to the person who is logged in and no else is visible to every user. I also hope someone here might have a suggestion or recommendation for what I might try next.
Thanks.
I’d like to take the URL entered in an Xprofile field and display it on another page using a different Xprofile field as the link text (instead of using the URL entered in the the Xprofile field as both the link text and the destination).
So as an example, the Xprofile fields are Blog Name and Blog Address. On the profile, the Blog Name is plain text, and the Blog Address is a URL. When I display it on the other page, I want the Blog Name field to show up as the link text, and then the link’s destination will be the Blog Address field.
I’m able to grab and display both Xprofile fields as is, but the URL field is coming through as the full link (with link text and address).
How do I convert that URL Xprofile field to text? Or split it up somehow so I’m just getting the address part?
1)How would I go about group name/members to show username | age | location
I have added those fields in user profile.2)Would I be able to have age displayed as number instead of date?