If you are using Buddypress 1.7, you need to check if you have the new hook «bp_custom_profile_edit_fields_pre_visibility». Check in your edit.php (/your-theme/members/single/profile/edit.php, if this page is not in your theme, check in buddypress plugin in bp-themes/bp-default folder) and register page (/your-theme/registration/register.php, if this page is not in your theme, check bp-default theme of buddypress plugin) if this line of code:
If your file edit.php don’t have this code, you should not see the fields created with this plugin, so you need to update your template edit.php and also register.php with this code. You only need replace all the content mainly php between this line «<div>» and this line «do_action( ‘bp_custom_profile_edit_fields_pre_visibility’ );». The old templates should look like this:
Yes, you can, since version 1.5.4, I have added a filter called «bxcft_show_field_value». You can use it and modify the value of your fields. For example, if you need to show only the day or month of the birthdate you need to add this code below in the functions.php of your theme:
If you want to change the file types allowed, use this filter «bxcft_files_ext_allowed». In the following code, the file extensions that are allowed are «txt» and «pdf»:
By default, only «doc», «docx» and «pdf» are allowed.
If you want to change the image types allowed, use this filter «bxcft_images_ext_allowed». In the following code, the image extensions that are allowed are «png» and «gif»:
If you want to limit the size of file upload, you have to use the filter «bxcft_files_max_filesize». The following code shows how to limit the file size to 2MB.
If you want to limit the size of image upload, you have to use the filter «bxcft_images_max_filesize». The following code shows how to limit the file size to 10MB.
Added a new method to all Field Type classes overriding «display_filter» method. This method will handle the way the field values are displayed.
Email: When you enable autolink, you will see the buddypress search link. If you disable autolink, you will see the «mailto» link.
Image, File: For this type of field, Autolink is not working. It does not matter you enable/disable it, you will always see the same value displayed.
Added new filters to change the way the fields are displayed. You can use now ‘bxcft_NAMEOFTYPE_display_filter’ to change the way the field are displayed. Replace NAMEOFTYPE with the name of the type like «birthdate», «email», «web», … Please stop using ‘bxcft_show_field_value’. This filter will be removed in version 3.0.
Added a filter to change the upload dir for images and files. ‘bxcft_upload_dir’. Override this filter to change the folder where files and images are saved.
Translation file and spanish language updated.
09/04/2016:
2.4.5
Use new feature of Buddypress «Autolink». Buddypress allows to enable/disable autolink feature at a field level. This plugin is now working with this feature. Thanks to riklisci for reporting this.
Add support for select2 javascript plugin. You can enable now select2 for select boxes and multi select boxes. Works with selectbox, multiselectbox, custom post type selector, custom post type multiselector, custom taxonomy selector and custom taxonomy multiselector.
Some translations updated.
31/03/2016:
2.4.4
Solve a bug with «bxcft_special_fields_search_validation». Thanks to sergeytraveler.
You can define now a minimum age for birthdate fields.
02/03/2016:
2.4.3
Loads js for birthdate selector when page loads and not only when you change month and year.
01/03/2016:
2.4.2
Birthdate selector improvement! Days of month are correct now. 28/29 for February, 31 for January, March, May, July, August, October and December. 30 for April, June, September and November.
03/02/2016:
2.4.1
Solved the bug with missing files. Sorry!
03/02/2016:
2.4.0
NEW! Type of field: Input slider.
Working with BP Profile Search finally! I’ve been working to make this plugin fully compatible with BP Profile Search.
Translation file updated
17/11/2015:
2.3.0
NEW! Type of field: Selector of custom taxonomies.
NEW! Type of field: Multiselector of custom taxonomies.
NEW! Type of field: Number within min and max values.
Fixed a bug with Website field. Sometimes the regular expression was giving false negatives. I’ve copied the regular expression from buddypress url field type.
Fixed a bug with Checkbox Acceptance that does not let you create or update this field.
Fixed a bug with Birthdate field type. Buddypress was throwing an error when user try to display age instead of birthdate.
Finally, a filter to limit file upload size and image upload size («bxcft_files_max_filesize» and «bxcft_images_max_filesize»). See FAQ for more info.
I have moved the initialization of variables that control the types of files and images allowed inside the «init» method because it was not working from the constructor. The filters «images_ext_allowed» and «files_ext_allowed» should work now as expected.
When the extension of file or image is wrong or the size is greater than maximum, I display now a custom message error and not the default message from buddypress. This message can be customized in language files.
Spanish, English and French translations updated. The rest is pending, any contribution is welcome.
09/02/2015:
2.1.4
I’ve removed the div wrapping some fields (birthdate, checkbox acceptance, datepicker, email and web). This div has no special purpose and was causing a css conflict in wordpress admin when editing a profile. Thanks to garett-eclipse.
05/02/2015:
2.1.3
Really now, I solved an issue with required checkbox acceptance in safari. Thanks to gm713
02/02/2015:
2.1.2
Readme bugs…
02/02/2015:
2.1.1
Solved issue with required checkbox acceptance in safari. Thanks to gm713
Plugin’s readme improved!
28/01/2015:
2.1
BP Profile Search is now compatible with this plugin again.
UPDATE CAREFULLY !!! Completely rewritten using new features of Buddypress 2.0. Maybe something from previous versions stop working in 2.0.
This version should work ONLY with Buddypress 2.0 or later.
Checkbox Acceptance: I’ve added a field where you can write the text of this field. You can also add links to the text. You should not use the description field like previous releases.
Filter “bxcft_field_input” has been removed for all types except image and file. You can use Buddypress filter “bp_xprofile_field_edit_html_elements” to add properties.
06/06/2014:
1.5.9.6
Solving error in registration and edit profile form with Image field.
When a field is empty, my plugin add «p» tags and this is wrong. Now when a field is empty, it will return empty…
FAQ updated.
11/10/2013:
1.5.7.6
Solving a bug caused by me solving another bug…
10/10/2013:
1.5.7.5
Solved a bug in «bxcft_edit_render_new_xprofile_field» function. Thanks to thomaslhotta.
FAQ updated.
07/10/2013:
1.5.7.4
Updated German translation. Thanks to Thorsten Wollenhöfer.
Added hook for errors like buddypress registration template: «bp_fieldname_errors».
28/08/2013:
1.5.7.3
Updated FAQ with javascript snippet to change location of description.
Updated all translations files.
Changed «*» with «(required)» string from buddypress files. Now the required word is the same for all fields. Fields from this plugin and original fields from buddypress.
22/08/2013:
1.5.7.2
Added a new field type: Number.
12/08/2013:
1.5.7.1
Solved bug displaying today date when user don’t fill birthdate field.
23/07/2013:
1.5.7
Added a new field type: Colorpicker.
Added Modernizr plugin for testing support in browsers.
Added Jscolor plugin fallback for browser with no support for colorpicker html5 field.
11/07/2013:
1.5.6.5
Added a new filter for displaying «Download file» link. Filter named «bxcft_show_download_file_link» and send text link, type of field, id of field, value of field. Thanks to kmb for suggesting this.
05/06/2013:
1.5.6.4
Updated russian translation thanks to Romik Jan.
02/06/2013:
1.5.6.3
Updated the link of BP Profile Search plugin.
29/05/2013:
1.5.6.2
Solved a warning when you use custom post type multiselect and have no choices.
Solved a warning with queries changing ASC with ‘ASC’.
Improving the faq.
22/05/2013:
1.5.6.1
FAQ updated.
08/05/2013:
1.5.6
Solved errors when uploading images or files in register page.
Revised code responsible of uploading files or images in edit profile.
24/04/2013:
1.5.5.5
Solved error when showing age instead of birthdate.