Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • muchad
    Participant

    @muchad

    @streamstalker
    good job..


    muchad
    Participant

    @muchad

    @aomao
    your welcome, please visit my buddypress at http://blog.uin-malang.ac.id


    muchad
    Participant

    @muchad

    put this in your functions.php in your theme

    function my_custom_query_filter( $query_string ) {
    $query_string .= ‘&per_page=10?;
    return $query_string;
    }
    add_filter( ‘bp_dtheme_ajax_querystring’, ‘my_custom_query_filter’ );

    you just change per_page option as you need…
    it’s run for me, you can see here http://blog.uin-malang.ac.id


    muchad
    Participant

    @muchad

    put this in your functions.php in your theme

    function my_custom_query_filter( $query_string ) {
    $query_string .= ‘&per_page=10’;
    return $query_string;
    }
    add_filter( ‘bp_dtheme_ajax_querystring’, ‘my_custom_query_filter’ );

    you just change per_page option as you need…
    it’s run for me, you can see here http://blog.uin-malang.ac.id


    muchad
    Participant

    @muchad

    put this in your functions.php in your theme

    function my_custom_query_filter( $query_string ) {
    $query_string .= ‘&per_page=10′;
    return $query_string;
    }
    add_filter( ‘bp_dtheme_ajax_querystring’, ‘my_custom_query_filter’ );

    you just change per_page option as you need…
    it’s run for me, you can see here http://blog.uin-malang.ac.id


    muchad
    Participant

    @muchad

    i ‘ve success change buddypress activity stream default option with multiple option, you just put this in functions.php in your theme.

    function blog_posts_by_default( $query_string ) {
    global $bp;
    if ( !$query_string )
    $query_string = ”;
    if ( ($bp->current_component == BP_ACTIVITY_SLUG || !$bp->current_component) && !strpos($query_string, ‘type=’)){
    if ( strpos( $query_string, ‘action’ ) == 0 )
    $query_string .= ‘type=activity_update,new_blog_post,new_blog_comment,new_forum_post&action=activity_update,new_blog_post,new_blog_comment,new_forum_post’;
    }
    return $query_string;
    }
    add_filter( ‘bp_dtheme_ajax_querystring’, ‘blog_posts_by_default’ );

    you can see the result here: http://blog.uin-malang.ac.id
    i hope it run well in your site..

Viewing 6 replies - 1 through 6 (of 6 total)
Skip to toolbar