I have given permission for anonymous users to comment on my site. But the default comment form being displayed does not have a field for email address in it. Also, I have comment notify installed. The email field to be displayed on the comment field should be recognized by comment notify as the email address of the commentor so that it can send notifications. Also, the email field should not be made visible for logged in users. I cannot solve all the three problems at once. Any help will be greatly appreciated.
1 Answer
I think you can make this work as follows:
In the Permissions settings via admin/people/permissions, ensure ANONYMOUS USER can View comments, Post comments, and Subscribe to comment notifications
In the Comment Notify settings via admin/config/people/comment_notify, ensure comment notification is enabled for the content type(s) you care about
For each content type you care about, e.g. for Basic page via admin/structure/types/manage/page, expand the Comment settings tab in the vertical menu at the bottom of the page and ensure "Anonymous commenting" is set to Anonymous posters must leave their contact information
-
What I was having trouble was finding the third step. Thanks. I got it working now, but there is also a website field added with the email field which I don't want. Is there any way to remove the website field and display only the email field? Mar 27, 2014 at 14:09
-
1You can remove the website field by adding the following code to your template.php in your theme directory: function themename_form_comment_form_alter(&$form) { $form['author']['homepage']['#access'] = FALSE; }– rrooseAug 19, 2016 at 9:10