Moving search Filters in side bar.

BP Profile Search › Moving search Filters in side bar.

  • Author
    Post
  • #9429 Reply
    Riccardo
    Guest

    Please see image bellow,

    Let me know which scripts i’d have to edit to accomplish this.

    https://ibb.co/hAD1B6

    #9430 Reply
    andrea
    Plugin Author

    Hello Riccardo,

    Unfortunately I don’t have a ready-made solution for your question. If you are a programmer, you could make a custom directory template, to remove the filters from the directory, and a custom form template, to add the filters there.

    #9431 Reply
    Riccardo
    Guest

    thanks for getting back to me.

    Im only starting now on understanding PHP so im not all too sure to do this.

    I see that the action to call the filters was in buddypress-sidewide.php:
    <?php do_action( ‘bp_before_directory_groups_content’ ); ?>

    I added this code on line 1 of bps-form-lagacy.php and it show is the correct place. However, all the rest of the bps-form-lagacy.php script doesnt show (i.e the search filters)

    Im not sure why that’s happening

    #9432 Reply
    andrea
    Plugin Author

    Hi Riccardo,

    Try adding this code *after* line 1 of bps-form-legacy.php:

    bps_display_filters ();

    #9433 Reply
    Riccardo
    Guest

    that worked too, but the same issue happens of loosing the filters as you can see in this image:
    https://ibb.co/ktmM0c

    why does i loose all the other filters?

    #9434 Reply
    andrea
    Plugin Author

    Did you add that code *after* the first non-comment line?

    #9435 Reply
    Riccardo
    Guest

    Yes of course,

    I tried everything but cant seem to come right.

    Please take a look at the image:
    https://ibb.co/jBrqdx

    #9436 Reply
    andrea
    Plugin Author

    Hi Riccardo,

    The code goes *after* the first line. This means:

    $F = bps_escaped_form_data ();
    bps_display_filters ();

    I’m sure it will work this time 🙂

    #9437 Reply
    Riccardo
    Guest

    THANK YOU!

    I’m sorry i wish i knew how to decipher error pages better.

    #9438 Reply
    andrea
    Plugin Author

    No problem, I’m glad you succeeded!

Reply to: Moving search Filters in side bar.
My Information