Email obfuscation in single event view with Email Address Encoder?

Home Forums Calendar Products Events Calendar PRO Email obfuscation in single event view with Email Address Encoder?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #947096
    letsgo
    Participant

    In thread: https://theeventscalendar.com/support/forums/topic/how-to-obfuscate-email-in-single-organizer-view/ poster managed easily to obfuscate email addresses in single event view, but had problems to do the same in single organizer view. On the contrary we have obfuscation working in single organizer view, but we have problems to get it working in single event view’s organizer’s email field. I would love to hear a solution for this.

    Example of single event view: http://www.tilaisuudet.info/tilaisuus/house-cafe-2/2015-03-10/
    Example of single organizer view: http://www.tilaisuudet.info/jarjestaja/one-way-mission/

    #957241
    George
    Participant

    Hi Elias,

    First of all, I cannot apologize enough for the insane delay in response time here! There are a handful of support threads that for one reason or another seem to have totally fallen through the cracks of our support workflows – I messed up hugely here, and even though I’ve gone through looking for old issues to ensure threads don’t get ignored like this one did, it somehow missed my radar and has been sitting here unaddressed for far, far too long.

    As for your issue – I’m not quite sure why for your specific website, the behavior from that original solution would be the inverse of what the other user found, but the (hopefully!) good news is that WordPress Core has its own email-obfuscation function that should be a good fallback option here. If you paste the following code into your theme’s functions.php file, do you find that the Single Event View’s organizer email is obfuscated?

    
    function tribe_947096_obfuscate_organizer_email( $output ) {
        return antispambot( $output );
    }
    
    add_filter( 'tribe_get_organizer_email', 'tribe_947096_obfuscate_organizer_email' );
    

    Let us know if this helps – and damn, I’m really sorry about that support snafu there!

    #961295
    letsgo
    Participant

    Thank you very much for the help. We’ll try this.

    #961774
    George
    Participant

    Great! Let us know what you find.

    #962243
    letsgo
    Participant

    This worked perfectly! Thanks again!

    #962588
    George
    Participant

    Awesome! 🙂 Best of luck with your site!

    — George

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Email obfuscation in single event view with Email Address Encoder?’ is closed to new replies.