donmik
Forum Replies Created
-
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Age not formatted rightMmmm, I’m testing in:
Wordpress 3.5
Buddypress 1.6.2
BP Xprofile Custom Fields Type 1.4.3The field set to show age works properly.
Can you check the versions?
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Not recognised by WP 3.5Thanks for reporting this.
Version 1.4.3 solve this issue with WordPress 3.5.
This topic is solved too.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Moving Field to Different GroupI mark this topic as resolved.
Ummm, ok, so what should be good for you it’s to choose the way to display the birthdate.
I can work in this update, but if you need this now, you can change the code of the plugin. Search the function bxcft_get_field_value. Replace this line of code:
return '<p>'.date_i18n(get_option('date_format') ,strtotime($value) ).'</p>';By this line:
return '<p>'.date_i18n('F j' ,strtotime($value) ).'</p>';You are doing here, instead of using the date format you adjust in settings, you use a custom format “F j” month and day only.
I will try to put this possibility in a future update.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] Moving Field to Different GroupHi,
You can drag and drop the field over the tab of the new group.
specex
If you want to show only birthdate, don’t check the option “Show age (hide birthdate)”. If you check this, it will show your age, if you don’t check this, it will show your birthdate.
Ummm, I’m totally lost now…xD. I don’t understand what you need.
The issue was in BP Profile Search you want select the Birth Date Field to activate Age Range Search. You cannot do this, the plugin BP Profile Search show the message “There is no date field in your profile”.
With the latest update, we solve this issue. Now you can select Birthdate field to activate Age Range Search, or not ?
Where do you see those options? Birth Date, Age Range, Age Range ? In the selector of “Birth Date Field” in Age Range Search?
About the last thing, if you check to show age instead of birthdate, in the form it doesn’t change anything. This option only changes one thing, instead of showing your birthdate it will show your age, but in the form, you still need to introduce your birthdate with the drop down boxes.
Ok, I think there is another filter who is interfering with the filter of xprofile plugin. I just released a new version. Try it, I hope it solves this issue.
while (bp_profile_fields ()) : bp_the_profile_field(); var_dump(bp_get_the_profile_field_type ()); switch (bp_get_the_profile_field_type ())Avoid the , put only this line:
var_dump(bp_get_the_profile_field_type ());What I was saying above is when we adapt the plugin to bp profile search, we only make one change.
Bp Profile Search looks for a datebox field type to use as a date field. Our birthdate field returns “birthdate” and not “datebox” when asking for the type of the field. The only thing we change is return “datebox” as the type of the field and then BP Profile Search could use our birthdate field.
So, if you have Birthdate selected in profile field type, it should work. With the same versions of plugins, it works in my wordpress.
If you can, you could show us what type of field is returning. To do this, you need to modify bps-functions.php, file of bp-profile-search. Put this code in bold, after line 21:
while (bp_profile_fields ()) : bp_the_profile_field(); <strong>var_dump(bp_get_the_profile_field_type ());</strong> switch (bp_get_the_profile_field_type ())Then if you reload the profile search page in administration, you can ser the type of each field above. Tell us what type of field it returns. It must return datebox for your birthdate field, if not, there is another plugin or filter interfering with xprofile plugin.
Hi,
If you want to make profile fields not public you can use the field Default Visibility and choose Logged in Users or My friends. It’s buddypress functionality.
I cannot see this issue with birthdate field. I try different settings but it always works. Maybe another plugin is interfering with this.
I’m glad that everything runs smoothly!
Great!
I’m glad to hear this!
Mmm, I believe this plugin can’t help you for what you want.
If you need to access profile data in members directory loop you can add in the template of this page, this code in the loop bp_members():
<?php if ( bp_has_profile() ) : ?> <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <?php if (bp_get_the_profile_field_name() == 'name_of_checkbox_data_field') : ?> <?php bp_the_profile_field_value(); ?> <?php endif; ?> <?php endwhile; ?> <?php endwhile; ?> <?php endif; ?>This will show all profile data for all members. You can check if the field name is the name of your checkbox field to display only the data you need.
I hope this helps.