Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile->Forums->Topics-Replied-To with Sitewide bbPress

  • Hi BuddyPress community,

    I’m loving working with this tremendous plugin so far, however I have stumbled across a problem which I cannot seem to solve myself.

    Prerequisite Info:

    1) WordPress – 3.4.2 (directory, root)
    2) BuddyPress – 1.6.1 (no group forums)
    3) bbPress – 2.1.2 (site-wide forums)
    4) I’m using my own parent theme adapted to include BuddyPress. Much of the BP templating is inherited from BP-Template-Pack.
    5) No BP core modifications
    6) I am using bp-custom.php functions, but nothing relevant to this issue

    I am running BuddyPress with bbPress 2.1 sitewide forums (and no group forums). In this setup configuration, bbPress extends buddypress by hooking into the “plugin.php” template in the user profile.

    The file “wp-content/plugins/bbpress/bbp-includes/bbp-extend-buddypress.php” contains a set of functions for displaying bbPress topics, replies, favorites, and subscriptions in the BuddyPress user profile. These functions hook into:

    `do_action( ‘bp_template_content’ );`

    They use bbPress templates to display the output, specifically:

    “themedir/bbpress/user-subscriptions.php”
    “themedir/bbpress/user-favorites.php”
    “themedir/bbpress/user-topics-created.php”

    All of which exist, and are fully functional. However, it also attempts to call:

    “themedir/bbpress/user-topics-replied-to.php”

    This template does not exist, not even in the default bbPress theme, nor do the functions exist in bbPress that calls a loop of replied-to topics.

    http://tamrielfoundry.com/wp-content/themes/foundry/images/theissue.png

    My first attempt at a solution to this was to create the template “user-topics-replied-to.php”, and write some functions to query recent replies by the profile displayed user. I was able to get a reply list, but not an attractive loop of the topics to which the user had replied.

    Ultimately, I feel like it’s not THAT important a feature to have, since forum replies are filterable in the activity stream anyways. So, what I would really like to do now is REMOVE the “Topics Replied To” subnavigation button. Employing the typical BuddyPress functionality for this, however, produces no results!

    `
    function example_remove_replies_button() {
    bp_core_remove_subnav_item( ‘forums’, ‘replies’ );
    }
    add_action( ‘bp_setup_nav’, ‘example_remove_replies_button’, 99 );
    `

    So, I’m stuck with my only option being to remove the button with CSS on the browser side, but the /members/username/forums/replies slug will still be active in my theme, which makes my OCD self mildly uncomfortable!

    Anyways, I finally arrive at my question / plea for help. Does anyone have experience with modifying the contents of bp_get_options_nav(); for site-wide bbPress forums. However bbPress is hooking in (which I am still trying to figure out), its strong enough to ignore bp_core_remove_subnav_item.

    I’ve tried to be as clear as possible with the nature of the problem, but I’m happy to elaborate if further information would be helpful. Thank you so much for any assistance you can provide.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Profile->Forums->Topics-Replied-To with Sitewide bbPress’ is closed to new replies.
Skip to toolbar