SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict
    Join Date
    May 2010
    Posts
    221
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    wp email guard plugin help

    i'm using the wp email guard plugin to obfuscate the email from spammers on this page.

    here's what the code looks like in the HTML editor:

    Code:
    <h3>Staples</h3>
    547 River Rd.
    Edgewater, NJ 07020
    Benito Rivera, Account Manager
    Cell: 201-923- 2033
    Tel: 201-945- 0955
    Fax: 201-945-0717
    benito.rivera@staples.com
    <a href="http://www.staples.com/copyandprint" target="blank">www.staples.com/copyandprint</a>
    but since there is a "." in between the first two names of the e-mail, when you look at the remote page, you see that the linkage of the e-mail only covers "rivera@staples.com".

    how do i code this so that the whole e-mail is a link, or the whole e-mail is NOT a link. I just want it to be consistent so it doesnt get cutoff.

    please advise. thanks in advance!

  2. #2
    SitePoint Guru bronze trophy TheRaptor's Avatar
    Join Date
    Jul 2011
    Location
    New York
    Posts
    710
    Mentioned
    40 Post(s)
    Tagged
    0 Thread(s)
    Use mailto:
    Code HTML4Strict:
    <a href="mailto:benito.rivera@staples.com">benito.rivera@staples.com</a>

  3. #3
    SitePoint Addict
    Join Date
    May 2010
    Posts
    221
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    got it. thanks.

  4. #4
    SitePoint Member
    Join Date
    Mar 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That did not work for me. Same result as before. Using 0.3 version. Period's break it into two different e-mail links, neither of which would send properly to the correct address.

  5. #5
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,457
    Mentioned
    160 Post(s)
    Tagged
    1 Thread(s)
    The plugin's last update was a few years ago. It's based on the premise that bots don't do javascript and real humans do, is that entirely true?

    If you really want to go this route though you could: Find another plugin. Hack this one.

    After a quick look the problem looks to be the regex pattern used - i.e. (\w+)@(\w+)\.(\w+)
    periods are not a "word character".


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •