Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • @manishn

    Participant

    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

    @manishn

    Participant

    OK I found this myself bp_activity_id();

    Thanks

    @manishn

    Participant

    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.

    Thanks

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