Viewing 3 replies - 1 through 3 (of 3 total)
  • David Abbott

    (@we-are-chesapeake)

    Hi. Had the same problem, but fixed it (I think (I Hope!)) in custom-profile-filters-for-buddypress-bp-functions.php.

    function cpfb_add_social_networking_links( $field_value ) {
    	global $bp, $social_networking_fields;
    
    	$bp_this_field_name = bp_get_the_profile_field_name();
    
    	if ( isset ( $social_networking_fields[$bp_this_field_name] ) ) {
    		$sp = strpos ( $field_value, $social_networking_fields[$bp_this_field_name] );
    		if ( $sp === false ) {
    			$url = str_replace( '***', strip_tags( $field_value ), $social_networking_fields[$bp_this_field_name] );
    			}
    		echo '<a href="http://' . $url . '">' . $field_value . '</a>';
    	} else {
    
    	return $field_value; }
    }
    add_filter( 'bp_get_the_profile_field_value', 'cpfb_add_social_networking_links', 1 );

    Thanks, it seems to work well. 🙂

    Thread Starter Vernon Fowler

    (@vernonfowler)

    Thanks David. Your code works. Success 🙂
    Thanks for confirming Mqlte.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Custom Profile Filters for BuddyPress] New profile fields in 1.6 ruins the functionality of’ is closed to new replies.