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 theme


  1. sweetrobot
    Member

    I have read this: http://www.appnitro.com/forums/topic/captcha?replies=2#post-297

    I have modified the file accordingly, and have the correct form- since I only have one form, form id 1, my code is as follows inside the custom_hooks.php file:

    `
    function form1_hook_pre_captcha(){
    $capthca_theme =<<<EOT
    <script>
    var RecaptchaOptions = {
    theme : 'clean'
    };
    `

    No matter what, the default, 'red' theme appears..

    Posted 14 years ago #
  2. yuniar

    Try to delete your "custom_hooks.php" file from your server first.
    Then upload it again from your computer.

    If the problem persist, please contact us directly and let us know your FTP login info.
    We'll check it.


    MachForm Founder

    Posted 14 years ago #
  3. skyblue
    Member

    I'm having the same problem. I've also tried deleting it from my server and reuploading it but still, the red theme appears. Was there a solution to this?

    Posted 13 years ago #
  4. redityo

    Have you change the form id in name function with yours ?

    form1_hook_pre_captcha()

    MachForm Support

    Posted 13 years ago #
  5. skyblue
    Member

    Yes. This is exactly what is in the config.php now:

    /** Hook samples **
    	//sample customizing captcha look and feel
    function form1_hook_pre_captcha(){
    		$capthca_theme =<<<EOT
    <script>
    var RecaptchaOptions = {
       theme : 'clean'
    };
    </script>
    EOT;
    		return $capthca_theme;
    	}
    
    **/
    Posted 13 years ago #
  6. yuniar

    oh, it shouldn't be the config.php file.
    The code should be within hooks/custom_hooks.php file.


    MachForm Founder

    Posted 13 years ago #
  7. skyblue
    Member

    Oops, I apologize. I meant to write custom_hooks.php INSTEAD of config.php. This code is definitely in the hooks/custom_hooks.php file. And I just re-uploaded it again. Still no change to the red theme.

    Posted 13 years ago #
  8. yuniar

    That's weird.
    Can you send us your custom_hooks.php file please? Also let me know the URL to your form.

    Please mail to: customer.service [at] appnitro.com
    I'll check it further.


    MachForm Founder

    Posted 13 years ago #
  9. masterstanf2k
    Member

    having same issue. Any updates?

    Posted 12 years ago #
  10. redityo

    is it possible to post your form url in here ?
    or you can send us your hooks file to mail : customer.service [at] appnitro.com

    we will help you to check the problem.


    MachForm Support

    Posted 12 years ago #

RSS feed for this topic

Reply