Skip to:
Content

Opened 7 years ago

Closed 7 years ago

#694 closed enhancement (fixed)

search function needs filter for WHERE clause

Reported by: _ck_ Owned by: mdawaffe
Milestone: Priority: high
Severity: normal Version: 0.8.2.1
Component: Back-end Keywords:
Cc:

Description

It is currently impossible to affect the query statement in the search function for bbPress without directly hacking the core search.php file.

May I request a WHERE filter be inserted just like "get_latest_topics_where" and "get_latest_posts_where".

Without this, plugins like "private forums" cannot block results for topics a non-member or non-moderator should not see.

It will also be useful for plugins that create a more powerful search ability to match premium forum software like vbulletin.

Change History (2)

comment:1 mdawaffe7 years ago

  • Owner set to mdawaffe
  • Status changed from new to assigned

You should check out the search features in the Content sections of bbPress' admin screens in trunk.

Also note that the search form is much more customizable in trunk now too:

bb_topic_search_form( "search=1&forum=1&tag=0&topic_author=0&post_author=0" );

That reflects the defaults: show a search field and a forum dropdown.

If you change them all to 1, you'll get a search field, a forum dropdown, a tag field, a topic_author field and a post_author field. Those are the only ones bbPress core supports at the moment. Date based searches would be a nice addition.

comment:2 mdawaffe7 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [907]) More filterable search queries. Fixes #694

Note: See TracTickets for help on using tickets.