Skip to:
Content
Pages
Categories
Search
Top
Bottom

Make URLs in User Profile answers hyperlink

  • @psfk

    Participant

    When setting up a question for a user profile – could one of the drop down boxes be ‘hyperlink’ and therefore the answer be hyperlinked on the member’s page? Is this possible now / via plugin / hack ??

    Any help – much appreciated.

    P

Viewing 3 replies - 1 through 3 (of 3 total)
  • @fishbowl81

    Participant

    There are some easy hacks, one could be as simple as

    remove_filter( ‘bp_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 2);

    add_filter( ‘bp_the_profile_field_value’, ‘bp_profile_link_profile_data_with_urls’, 2, 3); ‘

    Then create a function, similar to xprofile_filter_link_profile_data, but have it search for substr($field_value,0,7) = “http://”, then create a normal hyperlink, not a buddypress link

    Just a thought,

    Brad

    http://gorgeousgamers.com/beta/

    @psfk

    Participant

    Thanks – I actually went into bp-xprofile-filters.php and removed the s after https?

    @wythagy

    Participant

    You should be able to use hyperlinks just fine in a profile field. The bp-xprofile-filters.php has a section just for recognizing URLs – just make sure people put the “http://” before the URL or I don’t think it will work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Make URLs in User Profile answers hyperlink’ is closed to new replies.
Skip to toolbar