WordPress.org

Support

Support » Plugins and Hacks » Email Address Encoder » [Resolved] [Plugin: Email Address Encoder] Feature request: also encode "@"-substitutes

[Resolved] [Plugin: Email Address Encoder] Feature request: also encode "@"-substitutes

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Till Krüss

    @tillkruess

    Hey!

    I’ll release a new version of the plugin in the next days which will allow you to easily manipulate the regular expression, so you can parse your special @ too.

    Cheers,
    Till

    Plugin Author Till Krüss

    @tillkruess

    With version 1.0.2 you can do a fancy override of the regular expression like that: <?php add_filter('eae_regexp', function($pattern) { return str_replace('\@', '(\@|\[at\])', $pattern); }); ?>

    and where to place that?

    …and besides, I don’t want to parse my “@”, I write the mail-adresses in my posts and pages with “[at]”. So it would be great if mail-adresses written that way, will be encoded too! 😉

    If I change line 62 in email-address-encoder.php (ver 1.0.1) from

    \@

    to

    \@|\[at\]

    that does exactly the job!

    So I would appreciate, if you could include that in one of your next updates.

    Plugin Author Till Krüss

    @tillkruess

    Hey!

    I won’t include your desired changed in the plugin, it’s too much of a corner case. However I version 1.0.2 introduced the eae_regexp filter, as written earlier, which allows you to override the regular expression pattern yourself.

    Just place the code written code in your Theme’s functions.php or in a Must Use Plugin.

    Cheers!

    how about just implement a setting, where you can choose to change the @ into [at] or even better the plugin converses all @ automatically into [at]. that would also raise the security. a mix of antispam-technology is better than just one method.

    Plugin Author Till Krüss

    @tillkruess

    I intent to keep this plugin simple for overall compatibility. If you want to convert @ into [at] you can use the eae_method filter, but this will break mailto-links.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] [Plugin: Email Address Encoder] Feature request: also encode "@"-substitutes’ is closed to new replies.
Skip to toolbar