Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to remove auto generated links in user profile?

Viewing 9 replies - 1 through 9 (of 9 total)
  • @faramarz

    Participant

    looks like this plugin “BP Extended Settings” can do the job, but I can’t seem to find it.
    http://wpmu.org/daily-tip-tweak-buddypress-with-the-new-extended-settings-plugin/

    Any thoughts?

    @shanebp

    Moderator

    See the example at the bottom of the page :

    bp-custom-php

    @slaffik

    Moderator

    Will add one from BuddyPress Codex:

    https://codex.buddypress.org/remove-profile-field-links/

    @faramarz

    Participant

    @shanebp thanks man.

    This is the right code for BP 1.5+

    `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’ );`

    It should be added to bp-custom.php

    @jandr

    Participant

    anybody got any code for WP 3.51 and BP 1.6?

    When I add this to bp-custom.php the links go away but I can’t log out or in without getting these errors.

    I’ve also tried 50, 2 as suggested too.

    The errors are:

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/6/d454963766/htdocs/wordpress/wp-content/plugins/bp-custom.php:1) in /homepages/6/d454963766/htdocs/wordpress/wp-login.php on line 368

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/6/d454963766/htdocs/wordpress/wp-content/plugins/bp-custom.php:1) in /homepages/6/d454963766/htdocs/wordpress/wp-login.php on line 380

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/6/d454963766/htdocs/wordpress/wp-content/plugins/bp-custom.php:1) in /homepages/6/d454963766/htdocs/wordpress/wp-includes/pluggable.php on line 680

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/6/d454963766/htdocs/wordpress/wp-content/plugins/bp-custom.php:1) in /homepages/6/d454963766/htdocs/wordpress/wp-includes/pluggable.php on line 681

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/6/d454963766/htdocs/wordpress/wp-content/plugins/bp-custom.php:1) in /homepages/6/d454963766/htdocs/wordpress/wp-includes/pluggable.php on line 682

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/6/d454963766/htdocs/wordpress/wp-content/plugins/bp-custom.php:1) in /homepages/6/d454963766/htdocs/wordpress/wp-includes/pluggable.php on line 876

    When I delete the bp-custom.php file the errors go away but the links come back.

    HELP>>> This is frustrating as best.

    @sbrajesh

    Participant

    Look for spaces before the opening php tag `<?php`
    Make sure you don't have white spaces before the opening php tag and the closing php tag(from your description, It is before the opening php tag).

    That will fix it.

    @jandr

    Participant

    I have completely redone the code. The php starts is the very uphand left corner.

    Still getting the massive errors when logging out or in.

    `

    `

    Please help!

    @jandr

    Participant

    @praisehim

    Participant

    I can confirm that the following works on BP 1.6.5. I create a bp-custom.php file in my plugins folder, and then added this code:

    `

    `
    Hope this helps!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to remove auto generated links in user profile?’ is closed to new replies.
Skip to toolbar