How to link a view row to a node?
I stored the nid from the node that's commented on in a message field and used the information in a views-view-unformatted--message.tpl.php file.

&lt;?php if (!empty($title)): ?&gt;
  &lt;h3&gt;&lt;?php print $title; ?&gt;&lt;/h3&gt;
&lt;?php endif; ?&gt;
&lt;?php foreach ($rows as $id =&gt; $row): ?&gt;
  &lt;?php $message = message_load($view-&gt;result[$id]-&gt;mid); ?&gt;      
  &lt;div &lt;?php if ($classes_array[$id]) { print ' class="' . $classes_array[$id] .'"';  } ?&gt;&gt;
   &lt;a href="&lt;?php if (isset ($message-&gt;field_nid['und'][0]['value'])) {
                      print url('node/'.$message-&gt;field_nid['und'][0]['value']);} ?&gt;"&gt;
    &lt;?php print $row; ?&gt;
   &lt;/a&gt;
  &lt;/div&gt;
&lt;?php endforeach; ?&gt;