• Resolved julesibulesi

    (@julesibulesi)


    Hey there, Till.

    First things first: Thanks for this plugin! Good work!

    I do seem to have one problem with it, though: when I post something like <a href="mailto:address@mail.me">address@mail.me</a>, only the mailto-part in the a-tag gets encoded, the link text itself remains unaltered. Any idea why that might happen?

    So, in this example
    <a href="mailto:address@mail.me">address@mail.me</a>
    becomes
    <a href="correctly-encripted-mailto-link">address@mail.me</a>

    Cheers!
    Jules

    http://wordpress.org/extend/plugins/email-address-encoder/

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

    (@tillkruess)

    Hi! That’s weird. Do you have any other “encoding” plugins active? Please post me a screenshot of the source code, like this one.

    Thread Starter julesibulesi

    (@julesibulesi)

    Hm. The only other plugin I have running, that is allowed to alter text, is WP-Typography. I just deactivated it, and everything works fine then. That’s weird, however, because the links don’t look as if Typography would do anything with them – you can see the page structure with both plugins active here.

    Both plugins disabled.

    WP-Typography disabled.

    Plugin Author Till Krüss

    (@tillkruess)

    Thread Starter julesibulesi

    (@julesibulesi)

    Yep, sorry for not providing a link. Silly me.
    Aaand I just noticed that it’s quite an old one. I never checked, because it always worked fine for me. Maybe it’s time to see if there’s something newer around. 🙂

    Plugin Author Till Krüss

    (@tillkruess)

    You can fix this issue, by increasing the priority of the email address encoder filter:

    foreach (array('the_content', 'the_excerpt', 'widget_text', 'comment_text', 'comment_excerpt') as $filter) {
    	remove_filter($filter, 'eae_encode_emails', 1000);
    	add_filter($filter, 'eae_encode_emails', 10000);
    }
    Thread Starter julesibulesi

    (@julesibulesi)

    Great! Where do I put that, the functions.php?

    I get a feeling I’m severely compromising your weekend. I won’t hold it against you if you don’t answer until Monday. 😉

    Thank you so much for the quick support!

    Plugin Author Till Krüss

    (@tillkruess)

    I might alter the filter priority in the plugin, if more people have this issue, however until then I’d suggest to simply add a MU-plugin to your installation with the code above. Placing it in your theme’s functions.php would not persist a theme update.

    Thread Starter julesibulesi

    (@julesibulesi)

    Oki, I’ll do that. Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Email Address Encoder] Encrypts mailto-link but not link text?’ is closed to new replies.