Are you visiting as a normal user to their own profile?
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”.
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
BrajeshAlso,
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
BrajeshI 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.
The topic ‘ [Resolved] BuddyPress Xprofile Custom Field Types, : Image.’ is closed to new replies.