Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • @myershenry

    Participant

    this is my bp-custom file:

    <?php
    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’ );
    define(“BP_DEFAULT_COMPONENT”,”profile”)
    ?>

    @myershenry

    Participant

    That didn’t seem to do it. I can just dump that code into the theme’s functions.php file?

    I’m not great with php. Or is it this:

    //disable WordPress sanitization to allow more than just $allowedtags from /wp-includes/kses.php
    remove_filter( ‘xprofile_data_value_before_save’,
    //add sanitization for WordPress posts
    ‘xprofile_sanitize_data_value_before_save’, 1, 2 );

    @myershenry

    Participant

    I don’t know. I just added the most recent version after 1.6.

    I found this but it’s not working:

    Enable or Disable All HTML Tags in WordPress Author Biography Profiles

    //disable WordPress sanitization to allow more than just $allowedtags from /wp-includes/kses.php
    remove_filter(‘pre_user_description’, ‘wp_filter_kses’);
    //add sanitization for WordPress posts
    add_filter( ‘pre_user_description’, ‘wp_filter_post_kses’);

    @myershenry

    Participant

    I was using a bad theme so the above link might not have worked. I’ve changed themes and I’m having the same problems.

    This is what profiles look like:

    
    I'm the author of <a href="http://www.henrybaum.com/2011/01/north-of-sunset-2&quot; rel="nofollow">North of Sunset</a>, winner of the Hollywood Book Festival Grand Prize, and <a href="http://www.anothersky.org/in-print/the-golden-calf-henry-baum/&quot; rel="nofollow">The Golden Calf</a> – first published by Soft Skull Press, with editions in the U.K. (Rebel Inc.) and France (Hachette Littératures). Visit <a href="http://www.henrybaum.com/&quot; rel="nofollow">henrybaum.com</a> for more information. I’m the editor of <i>Self-Publishing Review</i>.
Viewing 4 replies - 1 through 4 (of 4 total)
Skip to toolbar