Opened 6 years ago
Closed 6 years ago
#7881 closed defect (bug) (fixed)
Search from filter for bp_nouveau_search_form
Reported by: | wbcomdesigns | Owned by: | imath |
---|---|---|---|
Milestone: | 3.2.0 | Priority: | normal |
Severity: | normal | Version: | 3.0.0 |
Component: | Templates | Keywords: | has-patch dev-feedback commit |
Cc: |
Description
Inside legacy we have bp_directory_groups_search_form() with filter
which help to modify the search form without modifying template files.
We can keep the same approach for nouveau.
It's called directly without any filter
bp_nouveau_search_form()
inside
buddypress/bp-templates/bp-nouveau/buddypress/common/search-and-filters-bar.php
Attachments (1)
Change History (19)
#1
@
6 years ago
- Component changed from Groups to Templates
- Milestone changed from Awaiting Review to Under Consideration
#2
@
6 years ago
- Keywords needs-patch added
@DJPaul
After a quick look, I think the best is to buffer the template part inside bp_nouveau_search_form(), apply the legacy filter according to the displayed page to finally echo it.
I’ll add a patch to this ticket asap.
#3
@
6 years ago
- Keywords has-patch reporter-feedback added; needs-patch removed
- Milestone changed from Under Consideration to 3.2.0
- Version set to 3.0.0
7881.patch is my suggestion to fix the issue.
It appears directory search filters are Core components ones, so I guess we should restore them asap, reason why I selected the 3.2.0 milestone.
In the patch, i'm also editing the bp_nouveau_message_search_form()
function (unused so far) so that it's also possible to filter the new JS Template for the message search form. This is to restore the bp_message_search_form
filter.
@wbcomdesigns can you test the patch and tell us if it fixes your issue ?
#4
@
6 years ago
Thanks, @imath I will update shortly, we need it for our plugin https://wordpress.org/plugins/bp-create-group-type/ it extends directory search with group type options.
#6
@
6 years ago
Thanks a lot for your feedback @vapvarun 👍 I'll wait for @wbcomdesigns' feedback so we are sure it's fine at 100% 😉
#8
@
6 years ago
- Keywords dev-feedback added; reporter-feedback removed
Awesome! Thanks a lot for your tests @wbcomdesigns. @DJPaul @hnla do you think we can improve the patch, or is it good to go ?
This ticket was mentioned in Slack in #buddypress by wbcomdesigns. View the logs.
6 years ago
#10
@
6 years ago
Looks quite OK to me! Also agreed about 3.2 milestone. Thanks for everyone's work and contributions on this. :)
#14
@
6 years ago
@imath took a while to figure out what was being addressed here and why, but updated and checked things over and it all looks ok.
@vapvarun are you and @wbcomdesigns actually the same person? :)
#15
@
6 years ago
@hnla Wbcom Designs is our agency and we are training our in-house developers to get familiar with reporting issues and providing patches at trac as @wbcomdesigns and once they feel confident they can submit issues/fixes standalone.
@imath Any ideas how to make this possible?