This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Captcha colour


  1. hipfish
    Member

    Hi!

    I cannot change my captcha colour (I have referred to your instructions re this topic in a previous post).

    Please could you help?

    My code is below from custom_hooks.php

    <?php
    /******************************************************************************
    MachForm

    Copyright 2007 Appnitro Software. This code cannot be redistributed without
    permission from http://www.appnitro.com/

    More info at: http://www.appnitro.com/
    ******************************************************************************/

    /** Hook samples **
    function form1_hook_pre_validation($user_input){
    return $user_input;
    }

    function form2_hook_post_insert($insert_data){

    }

    //sample customizing captcha look and feel
    function form1_hook_pre_captcha(){
    $capthca_theme =<<<EOT
    <script>
    var RecaptchaOptions = {
    theme : 'white'
    };
    </script>
    EOT;
    return $capthca_theme;
    }

    **/
    ?>

    Posted 16 years ago #
  2. WarPig
    Member

    Be sure to take that captcha function out of the /** comments **/ so it looks like this:

    /** Hook samples **
    function form1_hook_pre_validation($user_input){
    return $user_input;
    }
    
    function form2_hook_post_insert($insert_data){
    
    }
    
    **/
    //sample customizing captcha look and feel
    function form1_hook_pre_captcha(){
    $capthca_theme =<<<EOT
    <script>
    var RecaptchaOptions = {
    theme : 'white'
    };
    </script>
    EOT;
    return $capthca_theme;
    }

    Other than that, it seems to work fine...

    Posted 16 years ago #
  3. hipfish
    Member

    BRILL THANKS!!

    Posted 16 years ago #

RSS feed for this topic

Reply