The below code is from the comment.tpl.php file:
<div class="comment-avartar">
<?php print $picture ?>
<div class="submitted"><?php print render($content['submitted_by'] ['#markup']);?></a></div>
I want "$content['submitted_by'] ['#markup']" to link to the user profile of the user who posted the comment.
i have tried editing the code to something like this:
<?php $link = drupal_get_path_alias('user/' . $user->uid);?>
<div class="comment-avartar">
<?php print $picture ?>
<div class="submitted"><a href="<?php $link ;?>"><?php print render($content['submitted_by'] ['#markup']);?></a></div>
But it links to the user profile of the currently logged in user.
What I would like is to link it to the profile of the Comment author.
Thank you.