Skip to:
Content
Pages
Categories
Search
Top
Bottom

Embedding YouTube videos on profile field.


  • Connor
    Member

    @con101193

    I have installed Oembed 0.6beta onto my website, and have added the code define( ‘BP_OEMBED_DISABLE_XPROFILE’, false ); to my wp-config file and also added this code to bp-custom.php:

    add_filter(“bp_get_the_profile_field_value”,”bp_enable_yt_in_profile”,10,3);
    function bp_enable_yt_in_profile($val,$type,$key){
    $my_key=2;//change it to field id
    if($key==$my_key)
    return wp_oembed_get($val);

    return $val;
    }

    However nothing will show apart from the URL in the profile page, here is a link to a page I tried:
    http://utraz.com/members/administrator/profile/public/

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Embedding YouTube videos on profile field.’ is closed to new replies.
Skip to toolbar