Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress Activity Comment


  • rvnamb
    Participant

    @rvnamb

    When someone comments on an Activity only the new comment is popped up in the activity stream.
    How can we show the entire activity on the activity stream ? just like how Facebook does, it pops up the entire activity on its news feed

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

  • manishn
    Participant

    @manishn

    It’s too late for answering this question but will help someone else 🙂

    just put this code on your /plugins/buddypress/bp-activity/bp-activity-template.php file within this function bp_get_activity_action()

    if($activity_arr->type == 'rtmedia_comment_activity'){
    			global $wpdb;
    			$query = "SELECT activity_id FROM ".$wpdb->prefix."rt_rtm_media WHERE id='".$activity_arr->item_id."'";
    			$activity_id = $wpdb->get_var( $wpdb->prepare($query));
    			$activity = bp_activity_get_specific( array( 'activity_ids' => $activity_id ) );
    			$activity = $activity['activities'][0];
    			$action .= $activity->content;
    			
    		}

    Hope this help


    pauldupont
    Participant

    @pauldupont

    You are truly wonderful because you have this amazing knack for inspiring people with only a few words. exhibit of sorrows

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar