BuddyDev

Search

[Resolved] BuddyPress Xprofile Custom Field Types, : Image.

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #23107

    Are you visiting as a normal user to their own profile?

  • Participant
    Level: Enlightened
    Posts: 60
    tangpage on #23113

    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
    tangpage on #23122

    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
    tangpage on #23123

    hope this time, this will help understand what i am facing to … 😉

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #23134

    Hi,
    I do see your point and I can see the issue happening for multi types some of the time.

    I am still not sure of the actual issue though.

    Question 1:- Which field type are you using? We don’t offer any mobile/phone field type

    Question 2:- Are you using any other profile field related plugin/code?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #23135

    Also,
    Just to be sure I tested the image uploaded with a subscriber account and the field is allowing delete.

    Please make sure you are using the xprofile custom field types by us and the theme is not hiding checkbox.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 60
    tangpage on #23143

    I think, i just found out why, i signed this profile field to text field before, and this profile field on mine previously has value, so after i switch the profile field type to image form text. on the front end or back end, this profile field kinda still related to older value… that’s why the checkbox appeared when there’s no image….

    thank you, your team always so quick to respond to our questions!

    Best Regards.

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #23151

    No Problem.
    Glad you resolved it.

    Regards
    Brajesh

The topic ‘ [Resolved] BuddyPress Xprofile Custom Field Types, : Image.’ is closed to new replies.

This topic is: resolved