[Bb-trac] Re: [bbPress] #722: Virtual areas in root

bbPress bb-trac at lists.bbpress.org
Mon Aug 6 16:50:51 GMT 2007


#722: Virtual areas in root
-------------------------+--------------------------------------------------
 Reporter:  fel64        |        Owner:     
     Type:  enhancement  |       Status:  new
 Priority:  normal       |    Milestone:     
Component:  Front-end    |      Version:     
 Severity:  normal       |   Resolution:     
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by _ck_):

 Here's a workaround that I used to make this work for my needs,
 ie. /forums/view/listplugins
 {{{ function view_listplugins($view) {
 if ($view=="listplugins") {bb_load_template( 'list-plugins.php'); exit();}
 } add_action( 'bb_custom_view', 'view_listplugins' );

 function view_listplugins_filter( $views ) {
         global $views;
         $views['listplugins'] = "List Plugins Used";
          return $views;
 } add_filter('bb_views', 'view_listplugins_filter'); }}}

 The only problem is it will generate a mysql query as it thinks it has to
 fill a page. with $topics

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


More information about the Bb-trac mailing list