BP Profile Search › Moving search Filters in side bar.
-
AuthorPost
-
Riccardo
GuestPlease see image bellow,
Let me know which scripts i’d have to edit to accomplish this.
andrea
Plugin AuthorHello 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.
Riccardo
Guestthanks 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
andrea
Plugin AuthorHi Riccardo,
Try adding this code *after* line 1 of bps-form-legacy.php:
bps_display_filters ();Riccardo
Guestthat worked too, but the same issue happens of loosing the filters as you can see in this image:
https://ibb.co/ktmM0cwhy does i loose all the other filters?
andrea
Plugin AuthorDid you add that code *after* the first non-comment line?
Riccardo
GuestYes of course,
I tried everything but cant seem to come right.
Please take a look at the image:
https://ibb.co/jBrqdxandrea
Plugin AuthorHi 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 🙂
Riccardo
GuestTHANK YOU!
I’m sorry i wish i knew how to decipher error pages better.
andrea
Plugin AuthorNo problem, I’m glad you succeeded!
-
AuthorPost