It looks like BP Profile Search needs to add some actions and filters to allow other types of field types to be registered with it. Not much I can do at this point – sorry.
Yes I know… Today I have changed the code of BP Profile Search plugin and I have added the code to work with your ‘richtext’ field type.
Work very well.
Now I write to BP Profile Search plugin developer, maybe he update the plugin.
Thanks
I have a good news. Maybe help you.
The BP Profile Search plugin is very very hot.
The plugin have hook for custom field for example for richtext.
With this simple lines code it is possible to integrate richtext in profile search:
function my_custom_bps($field_type, $field)
{
switch ($field->type)
{
case 'richtext':
$field_type = 'textbox';
break;
}
return $field_type;
}
add_filter('bps_field_validation_type', 'my_custom_bps', 10, 2);
add_filter('bps_field_html_type', 'my_custom_bps', 10, 2);
add_filter('bps_field_criteria_type', 'my_custom_bps', 10, 2);
add_filter('bps_field_query_type', 'my_custom_bps', 10, 2);
I decide to convert richtext to textbox (not multiline) because for search is better a single line.
Thank you for this Nicola, much appreciated. I’ll add compatibility in the next version.
Hi Christian,
I have updated the plugin with new modify but now all the search fields are: Your HTML code for the field type goes here
I have deleted my modify before the update.
Oops, my bad. Should be fixed in 0.2.4.