Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/26/2011 03:28:35 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Introduce Forums tab to user account area, to show topics the user has started, topics the user has replied to, and favorite forum topics. This includes additional template files in bp-default to support new functionality, and edits to the forum_sql filter functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-screens.php

    r3917 r3933  
    44    global $bp;
    55
    6     if ( bp_is_current_component( 'forums' ) ) {
     6    if ( bp_is_groups_component() && !bp_current_action() && !bp_current_item() ) {
    77        if ( bp_forum_directory_is_disabled() || !bp_is_active( 'groups' ) )
    88            return false;
     
    6161add_action( 'bp_screens', 'bp_forums_directory_forums_setup' );
    6262
     63function bp_forums_screen_topics() {
     64    global $bp;
     65
     66    do_action( 'bp_forums_screen_topics' );
     67
     68    bp_core_load_template( apply_filters( 'bp_forums_screen_topics', 'members/single/home' ) );
     69}
     70
     71function bp_forums_screen_replies() {
     72    global $bp;
     73
     74    do_action( 'bp_forums_screen_replies' );
     75
     76    bp_core_load_template( apply_filters( 'bp_forums_screen_replies', 'members/single/home' ) );
     77}
     78
     79function bp_forums_screen_favorites() {
     80    global $bp;
     81
     82    do_action( 'bp_forums_screen_favorites' );
     83
     84    bp_core_load_template( apply_filters( 'bp_forums_screen_favorites', 'members/single/home' ) );
     85}
     86
    6387?>
Note: See TracChangeset for help on using the changeset viewer.