Doesn't seem to work for Comment author generated by a view.

Comments

muschpusch’s picture

Doesn't work in D7 either i tried to modify

 $data['realname']['table']['group']  = t('Realname');
  $data['realname']['table']['join'] = array(
    'users' => array(
      'left_field' => 'uid',
      'field' => 'uid',
    ),
    'comment' => array(
      'left_field' => 'uid',
      'field' => 'uid',
    ),
  );

Alternative :

Overwrite the views-view-field--name-[].tpl.php


if (!empty($row->comment_node_comment_statistics_uid)){
  $account = user_load($row->comment_node_comment_statistics_uid);
  echo $account->realname;
}

hass’s picture

Version: 6.x-1.3 » 7.x-1.x-dev
Issue summary: View changes