I need to put the name of the author who wrote the post and I can't find the solution.
EXAMPLE:
Rachel [06/03/21] : Commented in the post "How to be a Web Designer", written by: POSTAGE AUTHOR - Test Comment
<?php
$args = array(
'user_id' => bp_current_user_id(),
'number' => 20, // how many comments to retrieve
'status' => 'approve'
);
$comments = get_comments( $args );
if ( $comments )
{
$output.= "<ul>\n";
foreach ( $comments as $c )
{
$output.= '<li>';
$output.= $c->comment_author;
$output.= ' [';
$output.= mysql2date('d/m/y', $c->comment_date, $translate);
$output.= '] ';
$output.= ' : ';
$output.= '<a href="'.get_comment_link( $c->comment_ID ).'">';
$output.= get_the_title($c->comment_post_ID);
$output.= "</a>";
$output.= ' - ';
$output.= $comment->user_id;
$output.= $c->comment_content;
$output.= "</li>\n";
}
$output.= '</ul>';
echo $output;
} else { echo "No comments made";}
?>