• Resolved quesacco

    (@quesacco)


    Hi there,

    It is my understanding that if I use the codes :[staff_loop]
    <img class=”staff-member-photo” src=”[staff-photo-url]” alt=”[staff-name] : [staff-position]”>
    <div class=”staff-member-info-wrap”>
    [staff-name-formatted]
    [staff-position-formatted]
    [staff-email-link]
    </div>
    [/staff_loop]

    the email addresses are hidden by the antispambots, but there must be something I don’t do right as when I do a test, I can see the email addresses. What am I missing?

    Thanks – Great plugin!

    Fred

    https://wordpress.org/plugins/simple-staff-list/

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

    (@brettshumaker)

    Hey quesacco –
    Yes, the plugin uses the WordPress function antispambot() to obfuscate email addresses from spambots. The function does this by encoding some of the characters in the email address into html entities like this: j. Doing this makes it much more difficult for bots to recognize an email address on the page but still allows the browser to display the characters normally. If you look at the source code* of your page when it renders, you’ll see those HTML entities where your email addresses are located.

    You can learn more about the antispambot() function here.

    * If you aren’t sure how to view the source code of the page, this page can show you how.

    Thread Starter quesacco

    (@quesacco)

    Hi Brettshumaker,

    Thank you for getting back to me.

    That was my understanding but when I look at my page: http://www.ffcb.ca/notre-equipe/ source I can clearly see the addresses. That is why I am confused.

    Regards

    Plugin Author Brett Shumaker

    (@brettshumaker)

    Hi quesacco –
    You need to view the actual source of the page (CMD OPT U in Chrome for Mac) and not just “Inspect” the email address with your browser’s developer tools.

    I’ve uploaded a screenshot of the source code for the link you sent me. As you can see, the email addresses are definitely encoded as I described above.

    Thanks!

    Thread Starter quesacco

    (@quesacco)

    Thank you! I have learnt something today!

    Plugin Author Brett Shumaker

    (@brettshumaker)

    No problem – glad to help!

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

The topic ‘antispambot?’ is closed to new replies.