This project is read-only.

Not Requiring Email Address for Comments

Topics: Controls
Jan 12, 2009 at 1:39 PM
Is there a way to not require the email address when someone comments on a blog post, without modifying the code?
Apr 27, 2009 at 7:08 PM
That would be ideal.  I wouldn't want my email address to be public.
Apr 27, 2009 at 8:27 PM
Good point, I'd like this too
Apr 27, 2009 at 8:52 PM

To my knowledge, there is still not a way without touching the code.  If you are interested, I was able to resolve this by simply modifying two files from the website version (non-source code although it shouldn't matter as these files are the same in both instances):

The two files are "/blog.js" and "/User controls/CommentView.ascx". 

  1. In blog.js, simply replace var email = email.value; with var email = 'Email Address Not Required'; or any other string value.  By default, this should be line #52. 
  2. Next, simply comment out the entire row for the email address input from CommentView.ascx.  By default, this row begins on line #37.


Apr 28, 2009 at 8:53 AM
I would like the Gravatars to still show, but not put the email address on the page in view. Is that possible?
Apr 28, 2009 at 12:36 PM
It's ok I worked it out.