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
Started 14 years ago by sweetrobot | 10 posts |
-
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 # -
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 # -
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 # -
Have you change the form id in name function with yours ?
form1_hook_pre_captcha()
MachForm Support
Posted 13 years ago # -
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 # -
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 # -
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 # -
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 # -
having same issue. Any updates?
Posted 12 years ago # -
is it possible to post your form url in here ?
or you can send us your hooks file to mail : customer.service [at] appnitro.comwe will help you to check the problem.
MachForm Support
Posted 12 years ago #
Reply
You must log in to post.