Support » Plugin: BP Profile Search » Stay on search page after clearing criteria

  • Resolved Carsten Lund

    (@carsten-lund)



    Hi Andrea, when members clear, and maybe want to change their search criteria, they are directed back to the members list, instead of staying at the search page.

    Where can I change this redirection?

    Regards
    Carsten

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

    (@dontdream)

    Hi Carsten,

    You can modify the bps-filters.php template, at line 22. Replace:

    <a href='<?php echo $F->action; ?>'>...

    with:

    <a href='<?php echo 'name_of_your_search_page_here'; ?>'>...

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

    Carsten Lund

    (@carsten-lund)

    Hi Andrea, thanks for your prompt reply and the code, even though it’s in a week end 😉

    There is a small error somewere, the code links to a non existing page, domain/members/name_of_search_page

    Where it should be: domain/name_of_search_page/

    Thanks again

    regards
    Carsten

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Carsten,

    Try using the full name of your search page, taken from the browser address bar (should start with http or https).

    Hi Andrea, thanks, using the full url solved the problem

    Regards
    Carsten

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.