Forum Replies Created
-
Author
-
LuukDriessen
ParticipantHello Laura,
We did a clean install with Sweetdate.
We still have problems with the age/date of birth.
1. We can’t get to show ‘Age’ instead of ‘Date of Birth’ on our profile
http://www.ikbenopzoeknaarklanten.nu/leden/luigid/profile/
User: LuigiD
ww: lvd817mld!2. When in the Member overview we can only see the date of birth. We also uses the custom code from.
COPY CODE<?php add_filter( 'bp_get_the_profile_field_value', 'kleo_get_field_value', 1433); function kleo_get_field_value($value, $type, $field_id) { $value_to_return = $value; $field = new BP_XProfile_Field($field_id); if ($type == 'datebox') { $value_to_return = floor((time() - strtotime($field->data->value))/31556926); } return $value_to_return; } ?>ID 1433 is the dat of birth field. But in the examples are 2 ID’s. Maybe this is my problem?
I would be very helpful when this is solved
Thanks in advance
Gr Luuk
LuukDriessen
ParticipantHello,
I’m still having problems with this option/solution.
I don’t make use of the Xprofile plugin.
Instead, I use: Custom Profile Filters for BuddyPressMy bp-custom.php:
COPY CODE<?php /* remove profile field links */ function remove_xprofile_links() { remove_filter( ‘bp_get_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 1, 469 ); } add_action(‘bp_setup_globals’, ‘remove_xprofile_links’);?>Does anyone has any idea what to change?
1. I would like to DISABLE to search/link for username. ID:1
2. I would like to ENABLE the search/link for age. ID:2 -
AuthorPosts