WordPress.org

Forums

Captcha by BestWebSoft
[resolved] Blog Comments are Being Spammed Like Crazy (6 posts)

  1. TwistinGrip
    Member
    Posted 11 months ago #

    Hi there! I'm not a developer so need a little help. My blogs on http://www.twistingrip.com are being spammed upwards of 20+ posts a day. I don't know how to get captcha on there for verification.

    Can you please help? Thank you!!!!!

    https://wordpress.org/plugins/captcha/

  2. Chris Dillon
    Member
    Posted 11 months ago #

    You're going to need a developer. Your login/register/contact forms look like custom forms built into the theme. BestWebSoft does custom work so you might ask them.

  3. TwistinGrip
    Member
    Posted 11 months ago #

    I know a bit of code and can access my cpanel, just not sure what steps to take. Are you able to help with find where to go?

  4. Chris Dillon
    Member
    Posted 11 months ago #

    Can you send (1) a zip file of your theme and (2) a list or screenshot of your active plugins to me at chris at wpmission dot com?

  5. TwistinGrip
    Member
    Posted 11 months ago #

    Just sent, thank you!!!!!

  6. bestwebsoft
    Member
    Plugin Author

    Posted 9 months ago #

    Hi TwistinGrip,

    Captcha is displayed only in case you're using standard pages for registration, login and comments form. If these pages and forms are custom, it is necessary to make some changes to them to make the captcha work.

    Please follow the instructions below.
    = I would like to add Captcha to custom form on my website. How can I do this? =
    1. Install the Captcha plugin and activate it.
    2. Open the file with the form (where you would like to add the captcha to).
    3. Find a place to insert the code for the captcha output.
    4. Insert the necessary lines:

    if( function_exists( 'cptch_display_captcha_custom' ) ) { echo "<input
    type='hidden' name='cntctfrm_contact_action' value='true' />"; echo
    cptch_display_captcha_custom() } ;

    If the form is HTML you should insert the line with the PHP tags:

    <?php
    if( function_exists( 'cptch_display_captcha_custom' ) ) { echo
    "<input type='hidden' name='cntctfrm_contact_action' value='true'
    />"; echo cptch_display_captcha_custom(); } ?>

    5. Then you should add the lines to the function of the entered data checking

    if( function_exists( 'cptch_check_custom_form' ) &&
    cptch_check_custom_form() !== true ) echo "Please complete the
    CAPTCHA."

    or

    <?php if( function_exists(
    'cptch_check_custom_form' ) && cptch_check_custom_form() !==
    true ) echo "Please complete the CAPTCHA." ?>

    You could add this line to the variable and display this variable in the
    required place instead of echo "Please complete the CAPTCHA.". If
    there is a variable (responsible for the errors output) in the check
    function, this phrase can be added to this variable. If the function
    returns 'true', it means that you have entered captcha properly. In all
    other cases the function will return 'false'.

    Regards,
    BestWebSoft Support Team.

Reply

You must log in to post.

About this Plugin

  • Captcha by BestWebSoft
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic