Skip to:
Content
Pages
Categories
Search
Top
Bottom

Setting default ajax querystring.


  • shrogaijin
    Participant

    @shrogaijin

    Hi, I am stuck trying to get buddypress to show everything on the activity stream, when you land on members/user, the filter says everything, but it’s not showing everything, once I change to say updates and back to everything I get mentions and wall posts from people.

    Now, I’ve been working with this but its not working, can anyone explain how to do what I’m trying to do?.

    Thanks in advance guys.

    function qs_filter( $query_string ){
    global $bp;
    if ( !$query_string ):
    $query_string =”;
    endif;
    if ( ($bp->current_component == BP_ACTIVITY_SLUG || !$bp->current_component) && !strpos($query_string, ‘type=’)):
    if ( strpos( $query_string, ‘action’ ) == 0 ):
    $types=array(
    ‘activity_update’,
    ‘friendship_accepted’,
    ‘friendship_created’,
    ‘created_group’,
    ‘joined_group’,
    ‘group_details_updated’
    );
    $type=implode(‘,’,$types);
    $query_string = ‘type=’.$type.’&action=’.$type;
    endif;
    endif;
    return $query_string;
    }

  • You must be logged in to reply to this topic.
Skip to toolbar