Email Encoding

Support Area › Forums › Epic › Email Encoding

Viewing 4 posts - 1 through 4 (of 4 total)
URL to the page in question:
  • Author
    Posts
  • #10747
    Charles Smith
    Participant

    So I am trying to encode email addresses for spam protection on the site I have been working on. I am using a Gravity Contact for and so I am okay there. I have email addresses in articles and widgets and the a plugin called Email Encoder Bundle handles all of those automatically (pretty sweet). The only place I am having trouble is the email link on the staff page. Email Encoder Bundle has a form on the backend to get a mailto link that is encoded but it does not work in the Staff Member email blank on the backend. Any ideas how to encode or protect these or suggestions?

    #10748
    Bill Robbins
    Participant

    Chuck,

    You could edit the taxonomy-staff-group.php and single-staff.php files directly and change the email links there. This is what it looks like:

    
    	<?php if(get_post_meta($post->ID, "email", $single = true) != ""){ ?>
    		<span class="email"><a href="mailto:<?php echo get_post_meta($post->ID, "email", TRUE); ?>"> <?php _e('Email', 'organizedthemes'); ?> </a></span>
    	<?php } ?>
    

    You could replace the mailto link there with one that hides your addresses if you’d like to.

    If you need any help, let me know,
    Bill

    #10749
    Charles Smith
    Participant

    Found an even simpler implementation… changed the Mailto LInk plugin and it just works.

    #10751
    Bill Robbins
    Participant

    Fantastic

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Email Encoding’ is closed to new replies.