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

reCaptcha formatting


  1. fmolstad
    Member

    If I wanted my reCaptcha to use a different "theme" other than the defaiult "blackglass", I could use the method described here;
    http://www.appnitro.com/forums/topic/captcha?replies=2#post-297

    But that only applies to one form number.
    How would I code that to apply to all my forms?

    Would I do that in the css maybe?

    Thanks
    Forrest

    Posted 13 years ago #
  2. redityo

    You need to edit "view-functions.php" file for this. Edit the file and go to around line 1508 ~ 1510 for these code :

    if(function_exists("form{$element->form_id}_hook_pre_captcha")){
    $custom_precaptcha = call_user_func("form{$element->form_id}_hook_pre_captcha");
    }

    then put this code bellow those line :

    $custom_precaptcha = "<script>var RecaptchaOptions = {   theme : 'blackglass'};</script>";

    that would do it


    MachForm Support

    Posted 13 years ago #

RSS feed for this topic

Reply