Support » Plugin: Spam Destroyer » Filter Error Message Notice

  • Currently the error message reads:
    Sorry, but our system has recognised you as a spammer. If you believe this to be an error, please contact us so that we can rectify the situation.

    Which a false positive commenter pointed out isn’t the most friendly verbage.

    While this string is translatable pot files aren’t provided. They’re not hard to make, it’s be nicer if this strong was filterable.

    I forked the GH repo and would be happy to put in a PR for this.

    https://wordpress.org/plugins/spam-destroyer/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Note the “friendlier” message we came up with was:

    Sorry, but our system has recognized you may be a spammer. You comment has been held in our moderation queue. A human will review it shortly and if it’s not spam, we’ll gladly publish it.

    If you believe this moderation hold to be in error, please first ensure that you have Javascript and Cookies enabled in your browser. If after checking those are enabled you’re still having problems please contact us so that we can rectify the situation.

    Plugin Author Ryan Hellyer

    (@ryanhellyer)

    That’s an excellent idea! Where is your repo? I’m happy to implement that change.

    I have another idea which will be implemented in a future version, and that is instead of an error message, just forcing the user to answer a CAPTCHA. So 99.99% of users will just sail on through, but spammers and unlucky folks would simply have to answer a CAPTCHA.

    Doh! Feel foolish. I looked on GH and saw the plugin and assumed it was yours, it was actually the new WordPress.og plugins mirror.

    Regardless, commit is here:
    https://github.com/jb510/spam-destroyer/commit/ed8139076a3f206c2c955ae9d7b4318bc6a93160

    Example of filter in use:

    /**
     * Filter Spam Destoryer Error Notice
     * @return $string
     */
    function gmp_sd_error_notice() {
    	return '<div id="comments-error-message"><p><b>' . __( 'Sorry, but our system has recognized you may be a spammer.  Your comment has been held in our spam moderation queue.  A human will review it shortly and if it’s not spam, we’ll publish it.  If you believe this hold to be in error, please first ensure that you have Javascript and Cookies enabled in your browser.  If after checking that you are still having this problem please contact us so that we can rectify the situation. ', 'text_domain' ) . '</b></p></div>';
    }
    add_filter('sd_error_notice', 'gmp_sd_error_notice');

    Its quick and rough, obviously feel free to modify things if you prefer something else.

    Plugin Author Ryan Hellyer

    (@ryanhellyer)

    Considering how many people have contributed to this project, I should probably put this onto Github too.

    Thanks for the contribution 🙂

    I have a few plans for this plugin which I need to sit down and implement. I tried adding a huge number of changes a while back, but it all turned to heck as I ended up stuck in bug hell. But there are a lot of small adjustments which can be made to improve it, so I need to do that some time, starting with your helpful addition.

    Cool. Yeah, I kind of gave up on dealing with .org’s SVN unless I really absolutely have to.

    Plugin Author Ryan Hellyer

    (@ryanhellyer)

    This has been added the official repository, plus I’ve created a repository here on GitHub for pull requests … https://github.com/ryanhellyer/spam-destroyer

    There is a link to your website in the credits section now too.

    Cool. Thanks again!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Filter Error Message Notice’ is closed to new replies.