Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Add a new Tab

@r-a-y

Keymaster

@tubruk – Check out bp-themes/bp-default/forums/index.php.

In that file is a hook to add more tabs:

eg. Add this to your theme’s functions.php:

function my_new_fantabulous_forum_tab() {
?>
<li id="forums-newttab no-ajax"><a href="YOUR LINK">Another Forum Loop</a></li>
<?php
}
add_action( 'bp_forums_directory_group_types', 'my_new_fantabulous_forum_tab' );

If you want your tab to be AJAX-ifed, you’ll need to remove the “no-ajax” CSS class from the tab and write an AJAX hook as well.

Check out the “bp_dtheme_ajax_querystring” filter in /bp-default/_inc/ajax.php. It’s a little complicated, but once you get the jist of it, it makes things a little easier.

There’s a few posts on these forums about it:
http://www.google.com/search?hl=en&hs=6eV&rls=en&channel=suggest&q=%22bp_dtheme_ajax_querystring%22+filter&aq=f&aqi=&aql=&oq=

Hopefully that helps somewhat.

Skip to toolbar