Skip to:
Content

bbPress.org

Opened 18 years ago

Closed 16 years ago

#793 closed enhancement (fixed)

Order by date in search

Reported by: sambauers's profile sambauers Owned by:
Milestone: 1.0.3 Priority: normal
Severity: normal Version: 1.0.2
Component: Front-end Keywords:
Cc:

Description

Allow searches to be re-ordered by date instead of relevance.

Change History (6)

#1 @mdawaffe
18 years ago

I was playing with search the other day.

It was reasonably easy to change the search on the WordPress Plugins Directory to only show "relevant" topics (ignoring titles, recent, users,... and whatever other garbage we show) and to paginate the list.

http://wordpress.org/extend/plugins/search.php

Just a small plugin and a template tweak (running trunk or branches/0.8)

Plugin

function mod_bb_relevant_search( $query ) {
        if ( 'bb_relevant_search' == $query->query_id )
                $query->query_vars['count'] = true;
}

add_action( 'bb_parse_query', 'mod_bb_relevant_search' );

Template:

<?php
global $bb_query_form;

echo get_page_number_links( $page, $bb_query_form->found_rows );
?>

#2 @sambauers
18 years ago

  • Milestone changed from 0.8.4 to 0.8.5 & XML-RPC

#3 @(none)
17 years ago

  • Milestone 1.0-beta deleted

Milestone 1.0-beta deleted

#4 @sambauers
17 years ago

  • Milestone set to 1.0

#5 @sambauers
17 years ago

  • Milestone changed from 1.0 to 1.5

#6 @GautamGupta
16 years ago

  • Milestone changed from 1.5 to 1.0.3
  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from 1.0-rc-2 to 1.0.2

I think this was done in [2377]

Note: See TracTickets for help on using tickets.