Support » Plugin: Cryptex | E-Mail Address Protection » The Events Calendar

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andi Dittrich

    (@andi-dittrich)

    Dear stywax,
    sry. for the late response!

    the cryptex shortcodes, or better say all WordPress shortcodes, are only applied to the page main content “the_content”.

    if you’re using a plugin which outputs some data, you need to add the shortcode filter manually to each field. this issue affects all wordpress shortcodes.

    which event calender plugin is it ? maybe i can help you to integrate it.

    best regards, Andi

    Thread Starter stywax

    (@stywax)

    Thanks for the response.

    I don’t know how it works to add the shortcode filter manually to each field.

    Its for the plugin: https://nl.wordpress.org/plugins/the-events-calendar/

    Plugin Author Andi Dittrich

    (@andi-dittrich)

    maybe the following code will work (added to your themes functions.php file). it will apply the cryptex email filter to all organizer-email-addresses displayed by your calendar plugin – but i believe that it additionally requires a modification of the template, because the e-mail-address on your website is wrapped into an a tag (link).

    for further questions related to calendar, you should ask the author of the calendar plugin for integration support.

    add_filter('tribe_get_organizer_email', 'c_cryptex_events_calendar_shortcode');
    
    function c_cryptex_events_calendar_shortcode($emailAddress){
       return Cryptex::getEncryptedAddress($emailAddress);
    }

    Hi Andi,

    having the same challenge (to protect organizer’s email in the-events-calendar plugin) I did exaclty what you suggested and have extended the functions.php file (at the end with your snippet from above).

    Now I get the following (literally) output for the event organizer email:

    E-Mail:
        <!--CTX!--><span rel="a4312831be313631b2312331bd310b30be312c3194313331a5311d31b0311d31be3105309f311d319e311d31a6311a3198311b3164312231b931" class="cryptex " style="">XXX(at)XXXX-XXXX(dot)de</span><!--/CTX!-->

    (I’ve replaced the right email here for this posting with XXXXX)

    It seems that there is some interpretation missing. Any suggestion?

    Thank you very much in advance!

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