BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 60

    for example:

    $phone = xprofile_get_field_data(42,$user_id);
    $callme = BP_XProfile_ProfileData::get_value_byid( 42, $user_id );

    this profile field($phone), signed to phone type..

    so if i do:

    if($phone){echo ‘hello’;}

    when $phone is actually empty, on the front, still display “hello”.

    only when i do

    if($callme){echo ‘hello’;}

    it will display “hello”, when $callme has value. when it’s empty, then it won’t display “hello”.

  • Participant
    Level: Enlightened
    Posts: 60

    It looks normal when i logged in as a normal user.. but when I logged in as a super admin it looked different… maybe it’s not a big deal, but still weird… potentially could be a bug… right?

  • Participant
    Level: Enlightened
    Posts: 60

    … i just found another thing…

    It shows normal if i login as a regular as instead of super admin…

    as super admin, on profile editing page, even showing the checkbox for deleting on empty field…

    But it looks normal to regular users.

  • Participant
    Level: Enlightened
    Posts: 60

    hi… just curious… ; )

    if you have found the problem as i did…

    the profile field showed on the front, event when it’s blank, still showing a checkbox of : Check this to delete this file..

    and error image icon.

  • Participant
    Level: Enlightened
    Posts: 60

    plus, i am looking forward to your woocommerce plugin to become a big thing!!!!!!

  • Participant
    Level: Enlightened
    Posts: 60

    : )

    it’s same to the phone profile field,

    for example, i have profile field signed to phone type.

    $phone = xprofile_get_field_data(66, bp_displayed_user_id() );

    then,

    when i do some code like this:

    if($phone){

    echo ‘<i class=”icon-phone”></i>’ . $phone ;

    }

    on the front, when phone field is actually empty, it will still show <i class=”icon-phone”></i>.
    when it’s not empty, it will show $phone ahead of <i class=”icon-phone”></i>…

    weird, right.

    If i changed field type to just text field, it shows normal.

    when it’s empty, nothing showing, when it’s not empty, show content normally by order.

  • Participant
    Level: Enlightened
    Posts: 60

    for example:

    if i have profile field (id: 99) , used image type:

    $image = xprofile_get_field_data(99, bp_displayed_user_id());

    i want to show this at some other place, use some codes like

    if($image){
    echo ‘blah, blah, blah’;
    echo $image;
    }

    when this field is actually empty,
    it will still show an error icon of image… instead of nothing…

    or,

    i tried…

    if(!empty($image)){
    do something here…
    }

    but when the field is actually empty, still showing “do something here…” instead of nothing….

    .; (

  • Participant
    Level: Enlightened
    Posts: 60
    tangpage on in reply to: Have an idea for the circle.. #19617

    thank you so much , Brajesh. ; )

  • Participant
    Level: Enlightened
    Posts: 60

    So, this anonymous activity plugin won’t play well along with rtmedia’s privacy settings…. ; ( sad…

    but,

    ; ) your team is still the best! always!

    Happy holidays.

  • Participant
    Level: Enlightened
    Posts: 60
    tangpage on in reply to: Have an idea for the circle.. #19594

    thank you so much….

    so in any buddy circle, can i fetch all user ids in one circle?