// Because the whole tree has not been loaded, we manually
// determine depth
$depth = 1;
$parent_id = (int) $activities_template->activities[0]->secondary_item_id;
while ( $parent_id !== (int) $activities_template->activities[0]->item_id ) {
$depth++;
$p_obj = new BP_Activity_Activity( $parent_id );
$parent_id = (int) $p_obj->secondary_item_id;
}
$activities_template->activity->current_comment->depth = $depth;
}
Unfortunately that author doesn’t seem to do anything for free and it isn’t currently one of their paid “Add-ons”
That said, the most popular buddypress themes automatically integrate rtMEdia so I would imagine that the majority of buddypress users are running it for their user photo galleries which is why I’m here.