@manishn
7 years, 9 months ago
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
7 years, 10 months ago
OK I found this myself bp_activity_id();
Thanks
Thanks for your reply on this.
OK if this is not easy then can you please let me know how I can add ‘rel’ attribute in favorite button link?
like: <a href=".." rel='activity_id'> same as in ‘Reshared’ button.
<a href=".." rel='activity_id'>