• Resolved Carsten Lund

    (@carsten-lund)


    Hi Andrea, only some of the returned search results, are displayed in the members directory.

    The displayed values are from range, age range and distance search modes.

    The idea of returning the search results at each members profile is good, but then all the search criteria’s should be displayed.

    Is it a bug that some search values are displayed in the members directory?

    Best
    Carsten

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Carsten,

    The idea is to show the field values that are not obvious, e.g. if you search for City: London, there is no point to display City: London for all the search results.

    You can read more in:

    https://dontdream.it/bp-profile-search-5-0-2/

    Anyway if you prefer to show all the field values, we could find a way to do that.

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hi Andrea, that’s a good point, and said a good idea to show the search values.

    The problem on my site is that it mess up my members directory design, so it will need som css to display properly.

    In the documentation I can read that this feature can be deactivated with a code snippet, so that is the solution for me, thanks

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hi Andrea, the code to disable the search criteria displayed in members directory does not work for me, what could be wrong?

    Best
    Carsten

    add_filter ('bps_sort_options', 'change_sort_options');
    function change_sort_options ($sort_options)
    {
            $sort_options = array ();
            return $sort_options;
    }
    
    add_filter ('bps_details', 'change_details');
    function change_details ($details)
    {
            $details = array ();
            return $details;
    }
    Thread Starter Carsten Lund

    (@carsten-lund)

    One more display issue, in BPS_filters box the search mode ‘is’, is displayed after your text like this example:

    From is: city

    How do I get rid of the search mode value?

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Carsten,

    Did you put the code in bp-custom.php?

    And to change the bps_filters, the only way at this time is to modify the bps-filters.php template. After you modify a template, move it to the ‘buddypress/members’ directory in your theme’s root, otherwise it will be overwritten during the next plugin update.

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hi Andrea, yes I put the code in bp-custom.php

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Carsten,

    I’m unable to duplicate this issue. Do you see any messages in your browser’s console?

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hi Andrea, just to let you know, the code is working now, I think I placed it the wrong place within bp-custom.php. Sorry about that.

    Best
    Carsten

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Carsten,

    No problem, I’m glad you found the solution!

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hi Andrea, you wrote:

    to change the bps_filters, the only way at this time is to modify the bps-filters.php template.

    I really don’t need the BPS_filters displayed, but I need to be able to clear the search.

    If I hide the BPS_filters using the form div.field_1 class, I also hide the ‘clear’ button.

    How do I hide the BPS_filters but keep the ‘clear’ link?

    Regards
    Carsten

    Thread Starter Carsten Lund

    (@carsten-lund)

    Sorry, of course I ment

    .bps_filters {
    	display: none;
    }
    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Carsten,

    I guess you can modify the bps-filters.php template, removing the parts you don’t need.

    After you modify the template, remember to move it to the ‘buddypress/members’ directory in your active theme’s root, otherwise it will be overwritten during the next BP Profile Search update.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Only some of the returned search results, are displayed in the members directory’ is closed to new replies.