Skip to:
Content
Pages
Categories
Search
Top
Bottom

Make URLs in User Profile answers hyperlink

  • Avatar of PSFK
    PSFK
    Participant

    @psfk

    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)
  • Avatar of Fishbowl81
    fishbowl81
    Participant

    @fishbowl81

    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/

    Avatar of PSFK
    PSFK
    Participant

    @psfk

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

    Avatar of Wythagy
    Wythagy
    Participant

    @wythagy

    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)

You must be logged in to reply to this topic.