Replies
- tangpage on May 21, 2019 at 8:21 pm in reply to: [Resolved] BuddyPress Xprofile Custom Field Types, : Image. #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”.
- tangpage on May 21, 2019 at 7:59 am in reply to: [Resolved] BuddyPress Xprofile Custom Field Types, : Image. #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?
- tangpage on May 20, 2019 at 8:06 am in reply to: [Resolved] BuddyPress Xprofile Custom Field Types, : Image. #23093
… 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.
- tangpage on May 19, 2019 at 11:44 pm in reply to: [Resolved] BuddyPress Xprofile Custom Field Types, : Image. #23085
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.
- tangpage on May 14, 2019 at 9:29 am in reply to: [Resolved] BuddyPress Xprofile Custom Field Types, : Image. #22971
plus, i am looking forward to your woocommerce plugin to become a big thing!!!!!!
- tangpage on May 14, 2019 at 9:27 am in reply to: [Resolved] BuddyPress Xprofile Custom Field Types, : Image. #22970
: )
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.
- tangpage on May 9, 2019 at 10:17 am in reply to: [Resolved] BuddyPress Xprofile Custom Field Types, : Image. #22905
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….
.; (
thank you so much , Brajesh. ; )
- tangpage on December 19, 2018 at 1:25 am in reply to: This plugin conflict with rtmedia (Buddypress Media) plugin. #19596
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.
thank you so much….
so in any buddy circle, can i fetch all user ids in one circle?