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
Started 16 years ago by hipfish | 3 posts |
-
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
/******************************************************************************
MachFormCopyright 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 # -
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 # -
BRILL THANKS!!
Posted 16 years ago #
Reply
You must log in to post.