BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 69
    Christopher Niedzwiecki on in reply to: [Resolved] Filtering profile activity #6637

    Got it :D! Thanks a lot.

  • Participant
    Level: Enlightened
    Posts: 69
    Christopher Niedzwiecki on in reply to: [Resolved] Filtering the sitewide activity #6561

    This is the code I used and it worked. Thanks a lot for the help!!!!

    function bpex_bp_activity_types( $retval ) {

    if( ! bp_is_activity_directory()) {

    return $retval;
    }

    if ( bp_is_active( ‘activity’ ) ) {

    // list of all BP activity types – remove or comment those you won’t show.
    $retval[‘action’] = ‘
    //activity_comment,
    //activity_update,
    // bbp_topic_create,
    // bbp_reply_create,
    //friendship_created,
    //created_group,
    //joined_group,
    //last_activity,
    //new_avatar,
    new_blog_post,
    //new_blog_comment,
    //new_member,
    //updated_profile
    ‘;

    return $retval;

    }
    }
    add_filter( ‘bp_after_has_activities_parse_args’, ‘bpex_bp_activity_types’ );

  • Participant
    Level: Enlightened
    Posts: 69
    Christopher Niedzwiecki on in reply to: [Resolved] Filtering the sitewide activity #6560

    Do I put that above everything? Sorry, I’m a php noob lol.

  • Participant
    Level: Enlightened
    Posts: 69
    Christopher Niedzwiecki on in reply to: [Resolved] Filtering the sitewide activity #6558

    Well this does it on all activity even on your personal profile. Is there a way to just keep this setting on ONLY the activity page?

  • Participant
    Level: Enlightened
    Posts: 69
    Christopher Niedzwiecki on in reply to: [Resolved] Filtering the sitewide activity #6557

    ^comment whatever you dont want in the activity stream by putting a // before it. For example I put // before everything except “new_blog_post”

  • Participant
    Level: Enlightened
    Posts: 69
    Christopher Niedzwiecki on in reply to: [Resolved] Filtering the sitewide activity #6556

    I discovered the buddypress support lol. I found an answer that works for me. Here it is for others that may need it. Sorry 😛

    function bpex_bp_activity_types( $retval ) {
    if ( bp_is_active( ‘activity’ ) ) {

    // list of all BP activity types – remove or comment those you won’t show.
    $retval[‘action’] = ‘
    activity_comment,
    activity_update,
    // bbp_topic_create,
    // bbp_reply_create,
    friendship_created,
    created_group,
    joined_group,
    last_activity,
    new_avatar,
    new_blog_post,
    new_blog_comment,
    new_member,
    updated_profile
    ‘;

    return $retval;

    }
    }
    add_filter( ‘bp_after_has_activities_parse_args’, ‘bpex_bp_activity_types’ );

  • Participant
    Level: Enlightened
    Posts: 69
    Christopher Niedzwiecki on in reply to: [Resolved] Filtering the sitewide activity #6555

    <?php if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ) . ‘&action=new_blog_post’ ) ) : ?>

    ^this gave me a syntax error and it is from the codex lol

  • Participant
    Level: Enlightened
    Posts: 69
    Christopher Niedzwiecki on in reply to: BP Poke – Some comments #6473

    The only suggestion I have for the poke is when you are on the page that has all your pokes. I think it should be ajax because if you poke one person then it takes you off that page.

  • Participant
    Level: Enlightened
    Posts: 69
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 69
    This reply has been marked as private.