[Bb-trac] Re: [bbPress] #1049: Add a filter to allow displaying threads in reverse order

bbPress bb-trac at lists.bbpress.org
Sun Feb 15 19:35:19 GMT 2009


#1049: Add a filter to allow displaying threads in reverse order
---------------------------------------------------------------+------------
 Reporter:  johnbillion                                        |        Owner:  johnbillion     
     Type:  enhancement                                        |       Status:  new             
 Priority:  normal                                             |    Milestone:                  
Component:  Front-end                                          |      Version:  1.0-beta (trunk)
 Severity:  minor                                              |   Resolution:                  
 Keywords:  thread, reverse, filter, apply_filters, has-patch  |  
---------------------------------------------------------------+------------
Comment (by johnbillion):

 At it's most basic, a plugin can reverse the thread order like this:

 {{{
 add_filter( 'reverse_thread', create_function( '$a', 'return true;' ) );
 }}}

 In most cases, a complete plugin will contain conditionals to determine
 when to reverse the thread order (eg. based on a user setting or a URL
 parameter).

-- 
Ticket URL: <http://trac.bbpress.org/ticket/1049#comment:2>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list