Heiko Mitschke
Forum Replies Created
-
Here is, how I solved the problem.
Add hCaptcha to the booking form:
<?php echo do_shortcode( '[hcaptcha]' ); ?>
Add validation into function.php:
function em_validate($result, $EM_Event){ $captcha_result = null; $captcha_result = hcaptcha_verify_post(); if ( null !== $captcha_result ) { $EM_Event->add_error('Bitte l?se das Captcha-R?tsel.'); $result = false; } if (!is_user_logged_in() && $_REQUEST['user_name'] == ''){ $EM_Event->add_error('Bitte gib deinen Namen an.'); $result = false; } if (!is_user_logged_in() && $_REQUEST['user_email'] == ''){ $EM_Event->add_error('Bitte gib deine E-Mailadresse an.'); $result = false; } return $result; } add_filter('em_booking_validate','em_validate', 1, 2);
I hope, this will help others to protect the booking form against spam submissions.
Have fun!
Heiko- This reply was modified 1 year, 5 months ago by Heiko Mitschke.
Thanks for your hint. The result is the same as before. The captcha is not a mandatory field…
Now I created two separate snippets that do work properly…
The two blocks on its own work. The problem only seems to occur if I use the if-statement. Is there a notation problem?
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Critical ErrorHi @bergwolf !
What errors do you get from PHP, WordPress and so on? ?? If you could share the logs, help would be much easier.
Greetings,
HeikoForum: Plugins
In reply to: [SpeakOut! Email Petitions] Saving setting not possible (fatal error)I am sorry, but the new version still throws errors when saving settings:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function sanitize_post_field(), 1 passed in /httpdocs/bndbz/wp-content/plugins/speakout/includes/class.settings.php on line 260 and at least 3 expected in /httpdocs/bndbz/wp-includes/post.php:2743 Stack trace: #0 /httpdocs/bndbz/wp-content/plugins/speakout/includes/class.settings.php(260): sanitize_post_field('default') #1 /httpdocs/bndbz/wp-content/plugins/speakout/includes/class.settings.php(161): dk_speakout_Settings->_clean_post_data() #2 /httpdocs/bndbz/wp-content/plugins/speakout/includes/settings.php(24): dk_speakout_Settings->update() #3 /httpdocs/bndbz/wp-includes/class-wp-hook.php(308): dk_speakout_settings_page('') #4 /httpdocs/bndbz/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #5 /httpdocs/bndbz/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /httpdocs/bndbz/wp-admin/admin.php(259): do_action('speakout_page_d...') #7 {main} thrown in /httpdocs/bndbz/wp-includes/post.php on line 2743
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Warning: Undefined variableSame warning shows up, if I use an action under signatures.
With some actions this shows up, too:
Warning: Undefined variable $message_update in /httpdocs/bndbz/wp-content/plugins/speakout/includes/signatures.view.php on line 5
Forum: Plugins
In reply to: [SpeakOut! Email Petitions] Saving setting not possible (fatal error)Perfect, thank you.
I would like to help and translate your plugin straighforward. I thought, that plugin editors could choose members of its translation teams.
Now I made a request to become a PTE and help the existing translators and we will see I this happens one time. ??
So thanks again for sharing your work!
Yes, I finally did it that way. I just wanted to inform you, but if you plan to remove this function, it does not matter.
Thank you for your great work and for sharing your plugin!
- This reply was modified 2 years, 4 months ago by Heiko Mitschke.
You are welcome!
Maybe you should set this topic to “resolved”. ??
Hello!
Yes, it set this option. After saving this form everything is fine. But if I change another option anywhere under “settings” the option “login form” will be set to yes again. This also happens with both last options where you can disable user registration when booking an event.
Regards,
HeikoIn your style.css you have a rule which lets your comments disappear:
.bd-comments-3 { display: none; }
Either remove this rule or override it with the following code
.bd-comments-3 { display: block !important; }
Hello Reiner!
Under settings -> sites -> single you are able to enable or disable comments. After doing o, you have to enable comments on your single’s page settings for every event created.
Regards,
Heiko—
In German:
Hallo Reiner!
Unter Einstellungen -> Seiten -> “Verwanstaltung Seiten” findest du die M?glichkeit, Kommenatare zu erlauben. Hast du die Einstellung aktiviert, musst du sie anschlie?end noch auf allen bisher erstellten Veranstaltungen einzeln aktivieren. Bei neu zu erstellenden kannst du das gleich auf der jeweiligen Seite mit erledigen.Viele Grü?e
Heiko- This reply was modified 5 years, 8 months ago by Heiko Mitschke.
But this should not be a reason for a one-star-rating.
The plugin works really excellent and even in the basic version you can almost achieve everything with it…You could read the comprehensive documentation or ask for help somewhere.