donmik
Forum Replies Created
-
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] No pictures up-loadedYou need to check your templates with buddypress template. For registration, register.php and for edit profile form edit.php
Great! But the better place to put this code is at the end of the functions.php of your theme.
Try this:
add_filter( 'bxcft_show_field_value', 'my_show_field', 15, 4); function my_show_field($value_to_return, $type, $id, $value) { if ($type == 'birthdate') { $value_to_return = strip_tags($value); $show_age = false; $field = new BP_XProfile_Field($id); if ($field) { $childs = $field->get_children(); if (isset($childs) && $childs && count($childs) > 0 && is_object($childs[0]) && $childs[0]->name == 'show_age') { $show_age = true; } } if ($show_age) { $interval = date_diff(date_create(), date_create($value_to_return)); $value_to_return = $interval->format('%y Year, %M Months, %d Days, %h Hours, %i Minutes, %s Seconds Old'); } else { $value_to_return = date_i18n(get_option('date_format') ,strtotime($value_to_return) ); } } return $value_to_return; }Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] No pictures up-loadedIf you see two fields, it’s a theme issue, you are using an old theme or your theme is not updated, check with buddypress default theme.
Solved in v2.0.4. Please update and try it!
Thanks for the tip. I will add to the FAQ.
You can use the filter “bxcft_show_field_value” and change the way your field value is displayed.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Request CountryFor now, I have no plan to add this type of field, because there is an “easy” way to do it as @arcangelgirl says.
You can request this feature to buddypress team, maybe they consider it for next updates.
Hi,
Sorry about the inconvenience. Maybe you can send me a link and I can see it, because I’m not able to see those errors on my test site.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] No pictures up-loadedCan you see the picture inside the uploads folder?
It’s a premium, I can’t do much. Maybe you have a custom registration template with this theme and you have to copy some code from buddypress inside it or change it and use a buddypress template for registration…
I’m sorry but I can’t help you much since this a work dependent from your theme and not my plugin…
What theme are you using? You can copy the files from buddypress to your theme.
Have you updated buddypress?
Great!
Yes, you need to wrap it with <script> tag.
You’re welcome!