• That’s great that there is a feature in the comments section that requires the commentor to put their email address…but what good does it do when it doesn’t even check to see if it’s an actual email address that person puts in?

    Here’s what one recent commentor put in the email field:
    “asdfasdfag”

    Obviously WP can’t check right on the spot to see if an email address is a valid, working email address. But the least it could is actually check and make sure it’s even an actual email address.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter jpigford

    (@jpigford)

    Well…anybody?

    {offtopic: Seems like it’s getting harder and harder to actually get some help around these forums.}

    I suppose an effort should be made to ensure that the entered email address does fall into the right format, but commenters need only enter their real email addresses if they wish you to contact them off the blog. You could just as easily respond to their comments on the blog and leave it at that.

    It might be even better just to remove the requirement for an actual email address.

    Forums are monitored largely by volunteers who provide assistance to others, the level of help raises and falls as people get busy with their lives..

    Regards

    Wow I CANNOT believe this isn’t in WP as standard….

    I’d be willing to bet that if it was done correctly and a patch was submitted to the developers, they’d add it in.

    I just found a function already in WP.

    function is_email($user_email)

    I’ve submitted a bug and patch to that checks to make sure the email address entered is valid. If you are interested and would like to apply the changes, there is a diff file attached to the bug report.

    https://mosquito.www.ads-software.com/view.php?id=982

    Hello,

    I just added the patch listed above (https://mosquito.www.ads-software.com/view.php?id=982) to wp-comments-post.php, but when I test the comments form and use a bogus email the comment still goes through. I’m wondering if I added the wrong bit of code? I added all the + parts, minus the +’s.

    Any help would be great. Thank you for your time.

    technobia

    (@technobia)

    I would like to eliminate the requirement for making people enter in an email address in order to post a comment.

    I think people are suspisious about doing so and seems to limit commenting on one of my sites. Is there a way to remove it as a requirement to post a comment?

    vkaryl

    (@vkaryl)

    Sure – hack the core code. Or alternatively, simply uncheck the box in options next to “user must provide email” or whatever it is. [Checked: actually it’s “Comment author must fill out name and e-mail”….]

    technobia

    (@technobia)

    vkaryl –

    Gee that seems so obvious. LOL I missed that page of options.

    Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Required email in comments doesn’t do jack’ is closed to new replies.