• Resolved WP-Henne

    (@wp-henne)


    Hi @ironikus,

    just a message:

    Now i’m trying to protect even phone-numbers with Your Encoder.
    This works perfectly while using the phone-prefix:
    tel:+3213442345678 at the link-field and
    13442345678 at the view field.

    But I prefer to use different expressions for desktop and mobile-view, so at desktop I need only 13442345678 but without link.

    May You will add a clean “link-field” option at feature release to encode numbers or text as well without link?

    Many Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ironikus

    (@ironikus)

    Hey @wp-henne – thank you a lot for your message!

    I assume you use the [eeb_mailto] shortcode for it, correct?

    We already do offer protection for only text (without any link formatting and so on).
    Here’s one solution for each out your use-cases:

    Protection of phone numbers WITH converting them to a link:
    [eeb_mailto email="12345689" extra_attrs="target='_blank'" method="rot13" display="12345689"]

    Protection WITHOUT any link:
    [eeb_protect_content protection_text="Please activate javascript to see the email." method="rot13"]12345689[/eeb_protect_content]

    The second version protects any content you put in between the start and closing tag. ??
    Hope this helps so far.
    If you have further questions, please let me know.

    • This reply was modified 4 years, 11 months ago by Ironikus.
    Thread Starter WP-Henne

    (@wp-henne)

    Hello @ironikus,

    many thanks for your fast response!

    I had used the email encoder at the config page at wordpress backend. And didn’t see before the shortcode info at the very low bottomline.

    Your shortcode:

    The second shortcode works perfectly like expected if i’m using only phone for desktop! Great!

    But the first do not fit for using with the phone-option at celular device.

    Because i need something like
    [eeb_mailto email="tel:+3213442345678" extra_attrs="target='_blank'" method="rot13" display="134 42 345 678"]
    But if i’m clicking this, it will open the mailclient.

    This is the html-code to use click and call at celular-device:
    <a href="tel:+3213442345678">134 42 345 678</a>

    I think, there is something more to do to use your plugin. The only solution at the moment is to use the html-encoding.
    <a href="tel:" class="mailto-link">134 423 45 678</a>

    https://pastebin.com/whWd1xa8

    Note the change from mailto: to tel:

    This works!

    Thank you

    • This reply was modified 4 years, 11 months ago by WP-Henne.
    Plugin Author Ironikus

    (@ironikus)

    HEy @wp-henne – thank you for your feedback.
    You have been totally right – it changes the link to mailto:

    To get rid of that, you can also include the whole HTML into the content shortcode as follows:

    [eeb_protect_content protection_text="Please activate javascript to see the email." method="rot13"]<a href="tel:12345689" target="_blank" class="mailto-link">12345689</a>[/eeb_protect_content]

    This way it also works with the Javascript setup. ??

    Thread Starter WP-Henne

    (@wp-henne)

    YEAH @ironikus, this rocks!

    Many thanks!

    What a great plugin ever!

    Plugin Author Ironikus

    (@ironikus)

    It’s my pleasure! ?? Happy to hear you like it!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Feature Request: Encoding phone or text’ is closed to new replies.