Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to filter Activity Stream to hide ’pending’ / unpublished group forums and topics

  • Avatar of kraigg
    kraigg
    Participant

    @kraigg

    Good morning all

    I currently have group forums working with the latest Buddypress 1.6 and BBPress 2.1, and the bbPressModeration plugin (http://wordpress.org/extend/plugins/bbpressmoderation/) to moderate any newly created forums and forum topics. This plugin set new forums and forum topics as ‘pending’, until the administrator goes into the dashboard and marks them as ‘published’.

    The problem is that unmoderated ‘pending’ forums and forum topics still appear in the activity stream. Is there a way to do a filter so that only ‘published’ forums and topics appear in the activity stream?

    I’m using a custom activity stream:

    https://gist.github.com/1845471

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of kraigg
    kraigg
    Participant

    @kraigg

    Can anyone help me?

    I’m trying to filter the activity stream so that it only displays ‘published’ forum topics and replies.

    I’m using bbPressModeration, which marks all forum topics and posts as ‘pending’, until the administrator approves and publishes the content. The problem is that pending content still appears in the activity stream.

    I’m using the code below for my custom activity stream.

    `
    <?php

    /* = Generate Custom Activity Stream


    * Place this function anywhere you want to show your custom stream.
    * Should accept any of these parameters:
    * http://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/
    */

    my_activity_stream(‘per_page=4&page=1&action=new_forum_post,new_blog_comment,new_blog_post,new_forum_topic’);

    /* = Custom Activity Stream


    * Place this function in bp-custom.php (in your plugins directory)
    */
    function my_activity_stream($args ) {

    if ( bp_has_activities($args) ) : ?>

      <li class="” id=”activity-“>

      <a href="”>

    <?php endif;

    wp_reset_query();

    }
    `

    Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    This looks like a bbPress bug. Please report the bug to https://bbpress.trac.wordpress.org, using your username and password that you used to log into this site with.

    Avatar of kraigg
    kraigg
    Participant

    @kraigg

    Thanks Paul,

    I’ve just created a new trac ticket. If anyone else is having the same problems and want to follow up on it, the trac ticket is here: http://bbpress.trac.wordpress.org/ticket/1915

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.