Viewing 8 replies - 1 through 8 (of 8 total)
  • you can change that using the template file at /templates/ical.php

    https://wp-events-plugin.com/documentation/using-template-files/

    Thread Starter ianbutty

    (@ianbutty)

    Not sure I understand what you mean agelonwl – I have a location called “Ian’s Studio” (the name of my business) which is output by EM as “Ian’s Studio” in the SUMMARY line, but output as “Ian&#8217\;s Studio” on the LOCATION line. How does changing a template resolve that? Surely this is a bug in EM?

    using my post above, you can add this snippet
    $location = str_replace('&#8217\;','\'',$location);
    above this line
    echo "BEGIN:VEVENT UID:{$UID}

    basically, this is a quick fix and would correct the issue

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    with the luck you’ve had, you’re like the official ical debugger ??

    could you try replacing lines 49-50 to:

    $location = $EM_Event->output(‘#_LOCATION’, ‘ical’);
    $description = str_replace(“\\”,”\\\\”,ent2ncr(convert_chars(strip_tags($description))));

    Thread Starter ianbutty

    (@ianbutty)

    Official ical debugger is not a title I want!!

    I’ve probably done this wrong but….
    I assume the file I need to edit is:
    /www/wp-content/plugins/events-manager/templates/templates/ical.php ??

    (lines 49 and 50 look similar to what you have suggested changing)

    I am also guessing that the second line should be:

    $location = str_replace("\\","\\\\",ent2ncr(convert_chars(strip_tags($location))));

    (it was the location field which was causing the problem no the description one).

    Anyhow – change done – just waiting for google calendar to sync up which can be 24hrs. Will let you know what happens.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    yes, that’s the right file. I’m pretty sure that’ll work, as it’s what we do for event details

    Thread Starter ianbutty

    (@ianbutty)

    Marcus, not sure what happened – I messed up with applying the change on my system but before I could go sort it out you pushed out an update that appears to have resolved it. All looks great now. Thank you.

    Think we can mark this one closed now!

    Ian.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    hopefully the last ical bug until we start taking per-event timezones into account ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Events Manager] Apostrophies in locaton names in ICS files’ is closed to new replies.