Support

Home Forums Event Espresso Premium ICS Calendar Link Customization

ICS Calendar Link Customization

Posted: August 18, 2020 at 5:54 pm

Viewing 11 reply threads


jdbell1994

August 18, 2020 at 5:54 pm

Hello all,

I’ve designed a website for a health services nonprofit out in California and have used EE4 to run there event registration process. Due to COVID they have been running all events via zoom and I have incorporated the zoom link into the notification emails but one of the board members made a request that I think has some value. This being that since the ICS Add to Calendar link imports the date and time of the event to there calendars but doesn’t include the zoom URL in the event description or location. My question is as follows, is there a relatively simple way to add to this ICS file to include the virtual_url.

I’d appreciate any help with this and appreciate your help with the matter.

Thank You,
JB


Tony

  • Support Staff

August 19, 2020 at 4:50 am

Hi JB,

The iCal data is filtered so you can change pretty much any of it using the FHEE__EED_Ical__download_ics_file_ics_data filter.

We have an example of how you can add the virtual_url to the output here:

https://gist.github.com/joshfeck/d247c39f84d48db165e10113e8f39925

Note you may need to alter that depending on where you want to include it in the iCal.


jdbell1994

August 19, 2020 at 11:03 am

Hi Tony,

Thank you for the help. I added the code snippet to a custom plugin for the site and clicked on the add to calendar icon on the event page and I’m not seeing the virtual url anywhere when adding to calendar. Do I need to re-create the event or am I missing something?

Thank you,
JB


Tony

  • Support Staff

August 19, 2020 at 1:16 pm

No, you don’t need to recreate the event.

To confirm it’s pulling the value your expecting, where are you setting the virtual URL?


jdbell1994

August 19, 2020 at 3:29 pm

The virtual url is being set under the venue I created called “zoom” and in the venue settings the zoom link has been added in the “virtual location” section in the form field labeled “URL of Event”.


Tony

  • Support Staff

August 19, 2020 at 3:41 pm

Yeah that should be pulled through using the above snippet.

Can you link me to the event in question so I can view the iCal?


jdbell1994

August 19, 2020 at 3:43 pm

This reply has been marked as private.


Tony

  • Support Staff

August 19, 2020 at 4:00 pm

This reply has been marked as private.


jdbell1994

August 19, 2020 at 4:08 pm

OK that’s great but when I you try and save it as a calendar event I don’t see that URL showing up anywhere. When I try to add to calendar on my iphone the only URL that saves to the calendar event on my phone is the event web page URL. I’d just like the zoom URL to show up in Location or Event Description. Something like that.


Tony

  • Support Staff

August 19, 2020 at 4:34 pm

Problem is, changing Location to use the URL of the conference is against the standard set for the iCal format.

You’re welcome to try it but it’s important to note it’s against the standard.

To do the above change $ics_data['CONFERENCE;VALUE=URI'] to be $ics_data['LOCATION'], that’ll set the location to the URL.

If you want to add it to the description use something like:

$description = $ics_data['DESCRIPTION'];
$description .= $venue->virtual_url();
$ics_data['DESCRIPTION'] = $description;


jdbell1994

August 19, 2020 at 4:51 pm

Thanks Tony, the description worked perfectly. I appreciate all of the help!


Tony

  • Support Staff

August 20, 2020 at 8:43 am

You’re most welcome, I’m glad that worked for you.

Viewing 11 reply threads

The support post ‘ICS Calendar Link Customization’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso