Support » Plugin: Events Manager - Calendar, Bookings, Tickets, and more! » Registration Spam – any suggestion for a plugin

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    hi,

    EM have re-captcha for pro users in booking form editor

    in theory, a captcha plugin which can hook into a registration form should prevent this for new registrants. e.g. http://www.google.com/recaptcha

    http://wp-events-plugin.com/documentation/custom-booking-forms/

    I haven’t tried it yet, but I believe my plugin would stop this. It stops regular registrations and is hooked into a an action used by EM as well.
    I can’t tell you how effective it is.

    http://wordpress.org/extend/plugins/avh-first-defense-against-spam/

    Thread Starter generic0

    (@generic0)

    Thanks angelo-nwl I’ll check into the pro version see if the client wants to go with that.

    Thanks petervanderdoes, I’ll look into the plugin!

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    @petervanderdoes note that we renamed these actions to prevent conflicts with some reg-related plugins, but this should set things right in most cases:

    function my_em_registration_errors( $errors, $sanitized_user_login, $user_email ){
        if( !is_user_logged_in() ){
    	    return apply_filters( 'registration_errors', $errors, $sanitized_user_login, $user_email );
    	}
    }
    //This function triggers the register_form action which allows plugins like SI Captcha to ouptut a captcha on the booking form
    function my_em_registration_form_compat(){
    	//add registration hook if user isn't logged in or no-user mode isn't active
    	if(!is_user_logged_in() && !get_option('dbem_bookings_registration_disable')) do_action('register_form');
    }
    add_filter('em_registration_errors', 'my_em_registration_errors', 10, 3);
    add_action('em_booking_form_footer', 'my_em_registration_form_compat', 10000);

    @marcus The plugin acts upon the action hook ‘register_post’ which is also used in your registration function ’em_register_new_user’ hence I believe the plugin will work similarly with Events Manager registration as with WordPress core.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    am making assumptions here, but am confused as to how it’d work because it’s only an action (failures won’t prevent registration or show errors)

    unless you kill the script …. but that could cause problems with the plugin though because we use ajax calls.

    I may end up renaming that filter too, but then it’d be an easy fix to add another filter like above.

    if your plugin does kill the script, instead have you considered using the filter registration_errors ?

    The script does die/wp_die and to accommodate with the AJAX call I’ll change the script.

    I’ll use the filter em_registration_errors for spam checking. Thanks for the feedback 🙂

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    yes, you could always switch the hook you use if DOING_AJAX is defined (WP, not plugin-specific)

    you’re definitely not the only one doing this 🙂

    thanks for chipping in!

    Yesterday I released the new version of my plugin, hooking in to em_registration_errors and the core filter registration_errors.

    OK, now I’ll stop talking about my plugin 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Registration Spam – any suggestion for a plugin’ is closed to new replies.