false,'sticky'=>false); // attempt to short-circuit bb_query bb_register_view("installed-plugins","Installed bbPress Plugins",$query, false); bb_register_view("available-plugins","Available bbPress Plugins",$query, false); } else { // Build 214-875 (0.8.2.1) function my_views_installed_available_plugins_filter( $passthrough ) { global $views; $views["installed-plugins"] = "Installed bbPress Plugins"; $views["available-plugins"] = "Available bbPress Plugins"; return $passthrough; } add_filter('bb_views', 'my_views_installed_available_plugins_filter'); } add_action( 'bb_custom_view', 'my_views_available_plugins_view' ); function my_views_installed_plugins_view($view) { if ($view=="installed-plugins") : bb_send_headers(); bb_get_header(); my_views_header(1); my_views_installed_plugins(); my_views_footer(); bb_get_footer(); exit(); endif; } add_action( 'bb_custom_view', 'my_views_installed_plugins_view' ); function my_views_available_plugins_view($view) { if ($view=="available-plugins") : bb_send_headers(); bb_get_header(); my_views_header(1); my_views_available_plugins(); my_views_footer(); bb_get_footer(); exit(); endif; } function my_views_installed_plugins() { $dir = new BB_Dir_Map( BBPLUGINDIR, array( 'callback' => create_function('$f,$_f', 'if ( ".php" != substr($f,-4) || "_" == substr($_f, 0, 1) ) return false; return my_views_get_installed_plugin_details( $f );'),'recurse' => 1) ); $plugins = $dir->get_results(); $_plugins = array(); if ( is_callable( 'glob' ) ) { foreach ( glob(BBPLUGINDIR . '_*.php') as $_plugin ) {$_data = my_views_get_installed_plugin_details( $_plugin ); $_plugins[$_plugin] = $_data ? $_data : true;} } $current = (array) str_replace("user#","",bb_get_option( 'active_plugins' )); ?>
| Plugin | Author | Description | Version | Status |
|---|---|---|---|---|
| Total Plugins: | Authors: |
| Plugin | Author | Description | Latest version |
|---|---|---|---|
r. |
|||
| Total Plugins: | Authors: |