adding checkbox to comment form

Community Forums Forums Design Tips and Tricks adding checkbox to comment form

This topic is: resolved

This topic contains 7 replies, has 2 voices, and was last updated by  braddalton 1 year, 8 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #36925

    myersbr2
    Participant
    Post count: 21

    I’m having more spam that akismet isn’t catching as of late and I don’t want to use a full CAPTCHA system (as they annoy me!).  However, I’ve seen several folks simply put a conditional checkbox in the form that says “Check here to prove you’re a human” or similar.  I’ve found coding that does this, but it wants me to edit header.php and comments.php – big no-nos if you’re on Genesis.  What should I do?  See #5 on this article for what they’re suggesting I do: http://wp.tutsplus.com/tutorials/security/6-easy-and-efficient-ways-to-combat-spam-comments/

    http://www.stacymakescents.com
    #37030

    braddalton
    Participant
    Post count: 10675

    This is a more effective solution and its easy to customize and style http://wordpress.org/extend/plugins/captcha/screenshots/

    I would need to write custom coding to add the checkbox as there’s javascript and PHP which needs to be hooked into the comment form using Genesis hooks.


    #37036

    braddalton
    Participant
    Post count: 10675

    Another option which works well is to remove the website url field from the comment form

    Code not displaying? Grab it on Github.


    #37037

    myersbr2
    Participant
    Post count: 21

    I’d really like to keep the URL as that is a legitimate plus for many of my commenters. Is there a way similar to the code you posted above that would add the checkbox instead of removing the URL field?  Latham code looks simple enough in its functionality to remove a field. Sorry to be ignorant but I wonder why adding one should be any harder?

    #37044

    braddalton
    Participant
    Post count: 10675

    It takes time to write the code and test it as i can’t find any out there at the moment.

    I do have this code saved on Gist and locally in Notepad++ so i will work on this and post here when its working.

    Simple enough. These little things take a fair amount of time to write from scratch sometimes, to be honest, Bare with me please.


    #37084

    braddalton
    Participant
    Post count: 10675

    Here’s another solution which adds a checkbox simply by installing the plugin http://wordpress.org/extend/plugins/growmap-anti-spambot-plugin/


    #37155

    myersbr2
    Participant
    Post count: 21

    Thanks for this plug-in solution!  Works perfectly.  And my previous post where I said simple, I definitely didn’t mean “EASY”.  Simple and easy are rarely the same thing! :)

    #37164

    braddalton
    Participant
    Post count: 10675

    hahaha. Good stuff!


Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.