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)
  • Avatar of faramarz
    Faramarz
    Participant

    @faramarz

    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?

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    See the example at the bottom of the page :

    bp-custom-php

    Avatar of Slava UA
    Slava UA
    Participant

    @slaffik

    Will add one from BuddyPress Codex:

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

    Avatar of faramarz
    Faramarz
    Participant

    @faramarz

    @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

    Avatar of JanDR
    JanDR
    Participant

    @jandr

    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.

    Avatar of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    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.

    Avatar of JanDR
    JanDR
    Participant

    @jandr

    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!

    Avatar of JanDR
    JanDR
    Participant

    @jandr

    Avatar of praisehim
    praisehim
    Participant

    @praisehim

    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)

You must be logged in to reply to this topic.