tartarbar
Forum Replies Created
-
Forum: Plugins
In reply to: [Smart Grid-Layout Design for Contact Form 7] Response outputcf7-grid-layout-public.js – starts on 939 row
Forum: Plugins
In reply to: [Multiple Domain] CanonicalThank you
thank you
checkboxes work fine,
not recaptcha, Really Simple CAPTCHA (https://contactform7.com/captcha/)
i described the problem above
when you re-check captcha it already does not exist
file – /cf7-grid-layout/public/class-cf7-grid-layout-public.php
string – 783, function ‘filter_wpcf7_validate’
$result = apply_filters( “wpcf7_validate_{$type}”, $result, $tag );sorry for my english is not good)
ok)
the filter already comes with valid values and check captcha:
file – /cf7-grid-layout/public/class-cf7-grid-layout-public.php
string – 755, function ‘filter_wpcf7_validate’when you re-check captcha it already does not exist
file – /cf7-grid-layout/public/class-cf7-grid-layout-public.php
string – 755, function ‘filter_wpcf7_validate’
$result = apply_filters( “wpcf7_validate_{$type}”, $result, $tag );because after checking the captcha is removed:
file – /contact-form-7/modules/really-simple-captcha.phpfunction wpcf7_captcha_validation_filter( $result, $tag ) {
$type = $tag->type;
$name = $tag->name;$captchac = ‘_wpcf7_captcha_challenge_’ . $name;
$prefix = isset( $_POST[$captchac] ) ? (string) $_POST[$captchac] : ”;
$response = isset( $_POST[$name] ) ? (string) $_POST[$name] : ”;
$response = wpcf7_canonicalize( $response );if ( 0 == strlen( $prefix ) || ! wpcf7_check_captcha( $prefix, $response ) ) {
$result->invalidate( $tag, wpcf7_get_message( ‘captcha_not_match’ ) );
}if ( 0 != strlen( $prefix ) ) {
wpcf7_remove_captcha( $prefix );
}return $result;
}can you add filter to disable “private function define_public_hooks() {“
for “Checkbox”:
“public function filter_wpcf7_validate($result, $tags){”when the checkbox is not set, it is not send in $_POST
“if(!isset($_POST[$tag[‘name’]])) continue;//not submitted==disabled.”
for “Simple captcha”:
you delete hidden field
$data = $this->remove_hidden_fields_from_conditional_plugin($data);
where send captcha valueexample:
<input name=”_wpcf7_captcha_challenge_your-captcha” value=”126144047″ type=”hidden”>
“_wpcf7_captcha_challenge_your-captcha” remove
and result always error
$this->loader->add_filter( ‘wpcf7_validate’, $plugin_public, ‘filter_wpcf7_validate’, 30, 2 );
problem in function “filter_wpcf7_validate”
without “CF7 Smart Grid Design Extension” all work
Forum: Plugins
In reply to: [NextScripts: Social Networks Auto-Poster] Filter bug