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, 3 months ago.

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

    myersbr2
    Participant
    Post count: 17

    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: 9203

    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.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #37036

    braddalton
    Participant
    Post count: 9203

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

    Code not displaying? Grab it on Github.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #37037

    myersbr2
    Participant
    Post count: 17

    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: 9203

    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.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #37084

    braddalton
    Participant
    Post count: 9203

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


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #37155

    myersbr2
    Participant
    Post count: 17

    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: 9203

    hahaha. Good stuff!


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

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

You must be logged in to reply to this topic.