• Resolved wpuser

    (@forinn)


    Hi guys,

    Great plugin and it is working as expected I think. I see a lock icon after the e-mail addresses which is great. But I added some tags between a phone number, but no lock icon appears. How am I able to verify if the phone number is indeed protected?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @forinn

    Please check the source code of the page. You will see inside the <div class=”topbar”> … <div> correct emcoded email (search for *protected email*)
    But you should change the tags while using phone number. You should use any other than the phone outside the Shortcode from Email-Encoder to display the phone-icon.

    If all is correct, you will see the green lock twice and at source code no phone number.

    Regards
    wp-henne

    Thread Starter wpuser

    (@forinn)

    Hi Henne,

    Thanks for your swift reply. I just realized that the theme will disable the shortcode placed in the customizer after closing the customizer. Is there a way to add the protection directly into the sourcecode?

    Thanks!!

    Hello @forinn

    I looked at the theme because I suspected… that the input field for the phone number is “cleaned” there so that only phone numbers and + remain – because it is a phone number area.
    So it is not possible to execute shortcodes there. Whether the theme developer will support something … or a hook… I don’t think so.

    In a similar scenario, I have solved this with an additional plugin, which works like a “search and replace” and works virtually after all plugins before the actual output of the website (possibly in a cache).

    Just tested, you can use it!

    Cheers!

    Thread Starter wpuser

    (@forinn)

    Wow! Thank you so much for this effort. I installed the plugin and followed the steps. I see there are some additional options in that plugin (E.g. regex and stuff) that I just left empty. I assume no other checkboxes/additional settings in that plugin are needed?

    Furthermore, is there a way I can confirm if it is working? Because this is what I see in the sourcecode:

    <a href="javascript:;" data-enc-email="vasb[at]ybbvwznafnzhfrzrag.ay" class="mail-link" data-wpel-link="ignore"><span id="eeb-87849-764754"></span><script type="text/javascript">(function(){var ml="C4nv2e1tp%lEfjam-0sug.ciohrbD3Fxd",mi="9M0B8>294AF:>BB9ML9445?>G:94A85@:D@494A85@?P@694A?K@:D@A94A?K@49449M;9M0G94AF:>BB9ML944<>B94A<>@5235:H8594A?5@694A?B@494494A>JG>@IGPP529ML9447JC59449M;9M094NG9M;G2<H91A:HHG=?>2B>?CB5?527E2:9M094NB8>29M;9M0B8>294AF:>BB9ML944BFJ552@J5>P5J@75O79449M;;?>G:9M094NB8>29M;",o="";for(var j=0,l=mi.length;j<l;j++){o+=ml.charAt(mi.charCodeAt(j)-48);}document.getElementById("eeb-87849-764754").innerHTML = decodeURIComponent(o);}());</script><noscript>*protected email*</noscript></a> <a href="tel:1234567890"><span class="call pe-lg-2 pe-md-1 mb-lg-0 mb-2"><i class="fas fa-phone me-1 ms-2" aria-hidden="true"></i>1234567890</span><span class="screen-reader-text">Phone Number</span></a>

    I replaced the number with 1234567890 for privacy reasons. But it means I can still see it.

    Thanks!

    Edit: apparantly it took some time, cause now I do see the hash. Ticket can be closed.

    • This reply was modified 1 year, 9 months ago by wpuser.
    • This reply was modified 1 year, 9 months ago by wpuser.

    Hello @forinn

    Yes, everything is well done and you did all correctly.

    If you look at source code of the page (Mac: Option+Command+U or PC: Ctrl + U) but may be you are on that way 😉

    Only the plugin author or you as the thread starter can set Resolved. You can do this when replying below the form.
    I am only a “power user” of the plugin 😉

    Have nice day!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Phone number protection’ is closed to new replies.