Appnitro Software Forums » MachForm

reCaptcha theme

(10 posts)
  • Started 1 year ago by sweetrobot
  • Latest reply from redityo

  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 1 year ago #
  2. 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.

    Posted 1 year 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 10 months ago #
  4. Have you change the form id in name function with yours ?

    form1_hook_pre_captcha()
    Posted 10 months 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 10 months ago #
  6. oh, it shouldn't be the config.php file.
    The code should be within hooks/custom_hooks.php file.

    Posted 10 months 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 10 months ago #
  8. 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.

    Posted 10 months ago #
  9. masterstanf2k
    Member

    having same issue. Any updates?

    Posted 3 days ago #
  10. 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.

    Posted 2 days ago #

RSS feed for this topic

Reply

You must log in to post.