Drupal : How to change or where I can find username line for comments view in the script?

672 Views Asked by At

In Drupal display comments box I want to change the display username to first and last name. I have already setup the database and I know I can user $user->name to find the first and last name in my separate database table.

But my problem is, in the script where I should change it? I have looked in the comments module but I am not sure that script for viewing the comments.

Please can you tell me in which place I can find the displaying username in the comments view box in the script.

Thanks.

1

There are 1 best solutions below

4
Abhijit On

Do you mean you want to display the Firstname + Lastname of the comment author instead of the username while displaying the comments? If that is the case, then you can easily do that in your comment.tpl.php file instead of editing the comment module.