Skip to:
Content
Pages
Categories
Search
Top
Bottom

profile fields for members returning as hyperlinks, not plain text


  • franklinkevin321
    Participant

    @franklinkevin321

    Recent install of wordpress/buddypress and all of my profile fields of my members are returning in the format of a hyperlink. I need them to return in plain text. I believe there’s a PHP file somewhere I just need to make a small edit too to accomplish this. Any ideas?

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

  • shanebp
    Moderator

    @shanebp

    The codex is your buddy.

    function remove_xprofile_links() {
        remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
    }
    add_action( 'bp_init', 'remove_xprofile_links' );

    franklinkevin321
    Participant

    @franklinkevin321

    thank you for the reply, I made a bp-custom.php file and put it at the root of the plugins directory and it did not correct the issue.

    I should note that these hyperlinks display even after I have disabled all of my xprofile plugins so I’m stumped!


    bp-help
    Participant

    @bphelp

    @franklinkevin321
    You can try this small plugin:
    https://github.com/bphelp/bp-remove-profile-links/archive/master.zip
    Does the same thing shane suggested just in a plugin form. I have it working for me so give it a try.


    franklinkevin321
    Participant

    @franklinkevin321

    thanks! I did try that plugin as well and they are still coming back as hyperlinks. The only thing I found was if I use the plugin to add a Rich Text Field option it does what I want, however it makes the fields sizes HUGE! I’d much rather find a way to correct it so I can use the standard text field.

    Any other ideas?


    bp-help
    Participant

    @bphelp

    @franklinkevin321
    Maybe your theme or other plugins is interfering with the function of the plugin so maybe you should try a different theme like twentyfourteen and deactivating the other plugins other than BP and the bp-remove-profile-links plugin.


    franklinkevin321
    Participant

    @franklinkevin321

    thank you, tried that too. same thing.


    danbp
    Participant

    @danbp

    hi franklinkevin321,

    I have disabled all of my xprofile plugins

    For our understanding, can you tell which plugins you’re speaking about ?
    The snippet is intended for BP, so if you use another source to generate your profile fields, it maybe possible that it screws your template.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘profile fields for members returning as hyperlinks, not plain text’ is closed to new replies.
Skip to toolbar