Doesn't work on custom form? Here a dirty workaround
-
This code in the function.php of your theme ->
if( function_exists( ‘cptch_check_custom_form’ ) && cptch_check_custom_form() !== true ) echo “<p style=\”display: none;\”>Please complete the CAPTCHA.</p>”;—–
This code in your form tag from your contact form ->
<? if( function_exists( ‘cptch_display_captcha_custom’ ) ) {
echo “<input type=’hidden’ name=’cntctfrm_contact_action’ value=’true’ />”;
if( function_exists( ‘cptch_check_custom_form’ ) && cptch_check_custom_form() !== true ) echo $cptch_options[‘cptch_label_form’];
echo cptch_display_captcha_custom(); }
?>I displayed the “Label” from the Admin Site: echo $cptch_options[‘cptch_label_form’]
Try it out, its working fine for me under Multisite ??
Thanks a lot.
- The topic ‘Doesn't work on custom form? Here a dirty workaround’ is closed to new replies.