How can I remove the username link which is displayed in the comment submission form?

link|improve this question

feedback

2 Answers

up vote 2 down vote accepted
  1. Simple solution is to use CSS. Just add a css rule to your theme's stylesheet.

    #some .rule {display: none;}
    
  2. Alternatively you can use hook_form_alter to modify the form and remove the link or change it to something else.

    How to do it depends on your Drupal verion, see the API docs for reference or see altering form with hook_form_FORM_ID_Alter for usage on hook_form_FORM_ID_alter which is a specialized version of hook_form_alter.

link|improve this answer
as i am newbie could you please explain how to resolve it... thanks – Fero Jun 27 '11 at 6:22
It works... Thanks.. :-) – Fero Jun 27 '11 at 8:53
feedback

Edit the content type (in Drupal 7 this is under Structure -> Content types), and choose "Anonymous posters may not enter their contact information".

link|improve this answer
Thanks for the reply dylan... But i need to remove the link which leads to profile page when we click on the name of the registered user in comment submission form... – Fero Jun 27 '11 at 4:28
Do you want to remove the name entirely, or change it to plain text? What version of Drupal are you using? – Dylan Tack Jun 27 '11 at 5:17
I need to change it in to plain text... D6 i am using – Fero Jun 27 '11 at 6:17
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.