Contact Page Security Code Message - by Renee

This topic has 9 replies, 4 voices, and was last updated 9 years, 7 months ago ago by Stan Russell

  • Avatar: DoubleHapp
    Renee
    Participant
    May 10, 2016 at 03:13

    Hello

    Im testing my contact form and its giving me this message:

    THE SECURITY CODE YOU ENTERED DID NOT MATCH. PLEASE TRY AGAIN.

    I cannot see the option to add a code, nor in the theme options to enable or disable this.

    Please advise.

    Thanks,
    Renee.

    8 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 10, 2016 at 08:20

    Hello,

    Have you edited Contact form template or other theme files?
    May we reupload them?

    Best regards,
    Jack Richardson.

    Avatar: DoubleHapp
    Renee
    Participant
    May 10, 2016 at 08:32

    This rebuild I have not used any demo pages.

    I have only selected the contact form page template option for the page I created.
    I have not edited anything.

    I guess you can upload it. I’m not sure why though.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 10, 2016 at 14:30

    Hello,

    I’ve edited contacts.php file.
    Please check Contact page now.

    Best regards,
    Jack Richardson.

    Avatar: gerardpelders
    gerardpelders
    Participant
    May 10, 2016 at 16:01

    Hey,

    I have the same problem as Renee. Could you please tell me what I have to change in contact.php to add a security code gap to the form?

    Kind regards,

    Mirjam Hut

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 10, 2016 at 17:16

    Hello @gerardpelders,

    You need add this code in contacts.php file after the line 239:

    <?php
    $captcha_instance = new ReallySimpleCaptcha();
    $activeColor = (etheme_get_option('activecol')) ? etheme_get_option('activecol') : '#d7a200';
    $captcha_instance->bg = $rgb = hex2rgb($activeColor);
    $word = $captcha_instance->generate_random_word();
    $prefix = mt_rand();
    $img_name = $captcha_instance->generate_image( $prefix, $word );
    $captcha_img = ETHEME_CODE_URL.'/inc/really-simple-captcha/tmp/'.$img_name;
    ?>
    <div class="captcha-block">
    <img src="<?php echo $captcha_img; ?>">
    <input type="text" name="captcha-word" class="captcha-input">
    <input type="hidden" name="captcha-prefix" value="<?php echo $prefix; ?>">
    </div>

    Best regards,
    Jack Richardson.

    Avatar: DoubleHapp
    Renee
    Participant
    May 11, 2016 at 01:56

    Can this be resolved without me having to edit the php files? It’s just a contact form. I am not a coder.

    Thanks,
    Renee.

    Avatar: DoubleHapp
    Renee
    Participant
    May 11, 2016 at 02:04

    Hi Jack

    I have seen and testing this is now working. You can close this ticket.

    Thanks
    Renee.

    Avatar: stan
    Stan Russell
    Participant
    May 11, 2016 at 07:26

    Hello DoubleHapp,

    we are happy that your problem is solved! Have a nice day!

    Regards,
    Stan Russell.

  • Viewing 9 results - 1 through 9 (of 9 total)

The issue related to '‘Contact Page Security Code Message’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.