Skip to:
Content
Pages
Categories
Search
Top
Bottom

Automatic links in profile fields


  • Klosurdo
    Participant

    @klosurdo

    Hi,

    I like the idea of having certain fields link to other members with the same selection however, in one of the text fields buddypress seems to have arbitrary selected text to link that makes no sense (see screen capture). Why has it selected those sentences as links? Is there a way to remove that from happening without effecting the other dropdown and selection fields. This field should be pure text without arbitrary links.

    screenshot

    Thanks

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

  • shanebp
    Moderator

    @shanebp

    Try this in your theme/functions.php or in bp-custom.php

    function klosurdo_unlink_fields( $field_value ) {
    
    	$no_link_fields = array( 'Photographer Bio' );
    
    	$bp_this_field_name = bp_get_the_profile_field_name();
    
    	if ( in_array( $bp_this_field_name, $no_link_fields ) )
    		$field_value = strip_tags( $field_value );
    
    	return $field_value;
    
    }
    add_filter( 'bp_get_the_profile_field_value', 'klosurdo_unlink_fields', 99, 1 );

    Klosurdo
    Participant

    @klosurdo

    Ok this totally broke my site…Cant get it back even after deleting bp-custom.php data


    Klosurdo
    Participant

    @klosurdo

    Ok got most of my site back however, when I activate buddypress I go to a white screen. Any suggestions


    Klosurdo
    Participant

    @klosurdo

    These are the errors I receive when trying to activate buddypress

    Strict Standards: Declaration of BBP_Forums_Group_Extension::display() should be compatible with BP_Group_Extension::display($group_id = NULL) in /home1/cmpgorg/public_html/wp-content/plugins/bbpress/includes/extend/buddypress/groups.php on line 28

    Fatal error: Cannot redeclare kleo_bp_replace_placeholders() (previously declared in /home1/cmpgorg/public_html/wp-content/themes/kleo/lib/theme-functions.php:1894) in /home1/cmpgorg/public_html/wp-content/themes/kleo/lib/plugin-buddypress/config.php on line 105

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Automatic links in profile fields’ is closed to new replies.
Skip to toolbar