Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Christian Wach

    (@needle)

    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.

    Thread Starter NicolaCirotto

    (@nicolacirotto)

    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

    Thread Starter NicolaCirotto

    (@nicolacirotto)

    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.

    Thread Starter NicolaCirotto

    (@nicolacirotto)

    for complete guide you can see the official site: http://dontdream.it/bp-profile-search/custom-profile-field-types/

    Plugin Author Christian Wach

    (@needle)

    Thank you for this Nicola, much appreciated. I’ll add compatibility in the next version.

    Thread Starter NicolaCirotto

    (@nicolacirotto)

    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.

    Plugin Author Christian Wach

    (@needle)

    Oops, my bad. Should be fixed in 0.2.4.

    Thread Starter NicolaCirotto

    (@nicolacirotto)

    Perfect!! 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Integration with Profile Search’ is closed to new replies.