Skip to:
Content
Pages
Categories
Search
Top
Bottom

Perhaps a bug? RE: bp_get_member_profile_data( ’field=x’ );

  • Hey all,

    This is weird, either im doing something wrong [more likely] or perhaps its a bug. Im using the below function to add profile data to the members directory. When it pulls a twitter URL it leaves out the : in http:// – you can see it in action by going to http://tasartslive.com/members/ and scrolling down to Kims profile. Any ideas what im doing wrong?

    `
    function add_member_custom_extended_profile() {
    $data_twitter = bp_get_member_profile_data( ‘field=Twitter Page URL’ );

    if ( $data_twitter ){
    echo ‘

    ‘;
    }
    }
    add_action(‘bp_directory_members_item’, ‘add_member_custom_extended_profile’);
    `

Viewing 2 replies - 1 through 2 (of 2 total)
  • The error I see immediately is that you haven’t put quote marks around the href or class parameters.

    With the quotes, the link thats generated doesnt have the : so the link doesnt load. $data_twitter in the case im talking about has entered their site with http:// at the start. Iv checked in the db entry and its there… So im not really sure whats going on.

    Thanks for the reply!

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

You must be logged in to reply to this topic.