Search Results for 'profile fields'
-
Search Results
-
Topic: BP Member Filter
Super preliminary “you broke it you bought it” edition… This plugin for BuddyPress will allow you to filter users by XProfile fields when viewing your members directory.
http://johnjamesjacoby.com/files/2009/11/bp-filter.zip
Just waiting for the WP plugin repo before this goes there.
index.php and members-loop.php will go in…
themes/bp-default/directories/members/…or in the same location in your custom theme. They will *need* to be modified to fit the xprofile fields you intend to filter users by. I’ve included some examples in index.php.
I need to have 5 custom dropdowns each with more than 150 entries.
So.. this would make a 700-800 manually entered fields one by one….. and lots of Coca Cola

Besides the solution to dump these option values directly into the DB, is there a solution adding huge amount of values at once like comma seperated etc…?
Maybe extending the function?
Hi,
i have looked around for a solution to implement jQuery multiselect dropdowns and datepicker for dropdowns and date related fields created with “Profile_checkboxes” ….to gather user information and dispaying it on the user profile.
Especially the multiselect tool will improve multichoice handling.
Like descriped here:
Multiselect: http://code.google.com/p/dropdown-check-list/
and for the datepicker : http://keith-wood.name/datepick.html
Any idea is greatly appriciated
Topic: X-Profile Fields
Just installed a fresh WP/BP in my test environment with WP2.8.5.2 and BP1.1.2. I’m having an issue setting up certain custom profile fields.
In our live environment, which is a bit older and running BP 1.0.3, there were some pre-built fields available for things like State and Country pulldowns. I’ve been able to find the CSV files where this info resides in 1.1.2, but the pre-built fields don’t seem to be available.
Have these been phased out of use in this version of BP, or did I mess something up? I don’t relish the idea of creating 50 pulldown items for the US states…
Topic: html in profile fields
I have a need where I want to add html to the bp profile fields. I am using WP 2.8.4 and BP 1.1.1. Per a different thread, I’ve tried….
function stuff_i_want_triggered_after_bp_loads(){
remove_filter( 'xprofile_get_field_data', 'wp_filter_kses', 1 );
}
add_action('wp', 'stuff_i_want_triggered_after_bp_loads');…but it generates an error. Since the thread was older, I’m guessing something changed in 1x version.
How can I enable html in profile fields?
Thanks,
Phil
My first custom field_1 is for fullname. I want to capitalize that input. I already have a function that does that – nameize(). Where should I apply it?
I’ve gone through a lot of trouble to also update the full name in wp_usermeta and elsewhere upon activation, so those fields all have nicely formatted names.
But the display name is apparently stored in xprofile before activation. Where is the code that does that? Or is there a way to update the xprofile field with capitalized versions in the same custom function I use to update wp_usermeta?:
function synchro_wp_usermeta($user_id, $password, $meta) {
global $bp, $wpdb;
$uid = get_userdata($user_id);
$email = $uid->user_email;
$fullname = $meta[field_1];
$space = strpos( $fullname, ' ' );
$company = $meta[field_2];
if ( false === $space ) {
$firstname = $fullname;
$lastname = '';
} else {
$firstname = substr( $fullname, 0, $space );
$lastname = trim( substr( $fullname, $space, strlen($fullname) ) );
}
$firstname = nameize($firstname);
$lastname = nameize($lastname);
$autousername = str_replace('-', '', str_replace("'", "", str_replace('.', '', str_replace(' ', '', strtolower($fullname)))));
update_usermeta( $user_id, 'nickname', $fullname );
update_usermeta( $user_id, 'first_name', $firstname );
update_usermeta( $user_id, 'last_name', $lastname );
$wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET user_login = %s WHERE ID = %d", $autousername, $user_id ) );
$wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET user_nicename = %s WHERE ID = %d", $autousername, $user_id ) );
$wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET display_name = %s WHERE ID = %d", $fullname, $user_id ) );
$wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET user_url = %s WHERE ID = %d", bp_core_get_user_domain( $user_id ), $user_id ) );
}
add_action( 'wpmu_activate_user', 'synchro_wp_usermeta', 10, 3);