Skip to:
Content
Pages
Categories
Search
Top
Bottom

Strange Active Links in Member Profile Fields


  • Andrew Chapman
    Member

    @theselfpublishingpundit

    Running BP 1.5.4 on WP 3.3.1 in the root directory of a site in development at http://www.CompareSelfPublishingCompanies.com hosted by HostGator. I have not changed any BP code; BP installed only recently (no upgrade). The theme is Atahualpa. Also running MyReviewsPlugIn and some minor ones.

    On my member profiles, there are unwanted active links for no apparent reason. For example, an ordinary string of text is showing as an active link that produces a search on my site of that same string of text. This problem is random across the test profiles I’ve created and I can’t seem to intentionally replicate the problem. Example: http://compareselfpublishingcompanies.com/members/bodi/profile/

    In addition, I need to know how to make the URLs entered into the “website” field into active links that open in a *new* window so this happens automatically. (Member enters website URL and link is created to open in a *new* window.)

    Thank you!

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

  • Prince Abiola Ogundipe
    Participant

    @naijaping

    For the auto link in the profile , put this in your bp-custom.php, if you dont have bp-custom.php, create one in your plugin folder

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


    Andrew Chapman
    Member

    @theselfpublishingpundit

    @naijaping — Thanks. I’ll try this. To be sure I’m putting this bp-custom.php in the right place, does it go in the top-level buddypress directory or in one of the subdirectories (like bp-core)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Strange Active Links in Member Profile Fields’ is closed to new replies.
Skip to toolbar