Skip to:
Content
Pages
Categories
Search
Top
Bottom

Site Wide Activity Stream


  • tronix-ex
    Participant

    @tronix-ex

    Hi Support,

    How to remove this class “just-posted” from the latest activities list after some time without reload the page.

    Thanks,

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

  • danbp
    Participant

    @danbp

    It’s a temporary information and i wouldn’t try to alter or remove it.

    It use WP heartbeat API and what you’re looking for is defined in this (filterable)function:

    bp_activity_heartbeat_last_recorded


    tronix-ex
    Participant

    @tronix-ex

    Hi @danbp,

    Thanks for your response. How to define 2 filters in a loop I am using the below filter but it doesn’t work

    <php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&object=profile,status&action=bbp_reply_create,bbp_topic_create' ) ) : >

    Please help.

    Thanks,


    danbp
    Participant

    @danbp


    tronix-ex
    Participant

    @tronix-ex

    @danbp thanks for your response I’ve used the below code as per the suggested link but still it dosen’t work.

    function my_bp_activities_per_page_5_on_user_activity( $retval ) {
        // only fetch the last five entries if we're on a user's activity page
        if ( bp_is_user_activity() ) {
    	$retval['action'] = 'bbp_reply_create, bbp_topic_create, activity_update';
    	$retval['object'] = 'profile, status';
     } 
        return $retval;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'my_bp_activities_per_page_5_on_user_activity' );
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar