Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 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="https://' . $url . '">' . $field_value . '</a>';
    	} else {
    
    	return $field_value; }
    }
    add_filter( 'bp_get_the_profile_field_value', 'cpfb_add_social_networking_links', 1 );
    Thread Starter David Abbott

    (@we-are-chesapeake)

    Yes, uploading through the Media Uploader.

    “Its pretty simple to check the height an width relationship to find out which is larger.”

    Unfortunately not so simple that I can figure it out! Any tips, or places to read more?

Viewing 2 replies - 1 through 2 (of 2 total)