Support

Home Forums Event Espresso Premium Add ICal button?

Add ICal button?

Posted: September 15, 2015 at 12:40 pm

Viewing 12 reply threads


Dallas REIG

September 15, 2015 at 12:40 pm

Hello, I am using the espresso_event_date_obj to display my dates but when I use this there is no automatic ical button. How do I show the ical button?

Thanks in advance.


Dean

September 16, 2015 at 5:18 am

How about using the generate_add_to_iCal_button method in conjunction?

/wp-content/plugins/event-espresso-core-reg/modules/ical/EED_Ical.module.php


Dean

September 16, 2015 at 5:18 am

How about using the generate_add_to_iCal_button method in conjunction?

/wp-content/plugins/event-espresso-core-reg/modules/ical/EED_Ical.module.php


Dallas REIG

September 16, 2015 at 8:15 am

Thanks but how would I do that, is there an example you can refer me to? I am not advanced with OO coding. I tried to just call that method directly but that didn’t seem to work.


Lorenzo Orlando Caum

  • Support Staff

September 16, 2015 at 11:20 am

Hi, we can’t write custom coding for you but we try to provide a starting point where possible. The iCal button should automatically appear as part of the datetimes for different events.

Is that missing?


Lorenzo


Dallas REIG

September 16, 2015 at 12:02 pm

I understand but was wondering if there was example code somewhere for this question.

I worked off of example code and am currently using the below to display my date in my format but not sure how to get the ical button.

$datetime = espresso_event_date_obj($post->ID);
$start_day = $datetime->start_date(‘l’);
$start_time = $datetime->start_time(‘g:i a’);
$start_date = $datetime->start_date(‘M j, Y’);
$end_time = $datetime->end_time(‘g:i a’);
$end_date = $datetime->end_date(‘F j, Y’);?>

<h5 class=”event-date”><?php echo $start_day.’,<br/>’.$start_date; ?></h5>
<h5 class=”event-time”><?php echo $start_time.’ to ‘.$end_time; ?></h5>

Thanks


Dallas REIG

September 16, 2015 at 4:24 pm

Ok figured out how to call the function. I needed to use echo EED_Ical::generate_add_to_iCal_button( $html, $datetime );

I left off the EED_Ical:: in front of the function.

Now, my question is, how do I format the body of the ical when it is opened by the user. Everything is put in one big paragraph and loses formatting as it is in the body of the event.


Tony

  • Support Staff

September 17, 2015 at 4:09 am

Hi Maceo,

Can you post a link to the page with the iCal so we can view this please?


Dallas REIG

September 17, 2015 at 7:35 am

Sure, here you go.

http://www.staging1.dallasreigroup.com/events/funding-your-deals-just-got-easier/


Dallas REIG

September 19, 2015 at 9:13 am

Following up, is it possible to format what shows when a person opens the ical? Did you see what it does currently from my provided link as you requested?


Lorenzo Orlando Caum

  • Support Staff

September 19, 2015 at 12:15 pm

Hi Maceo, the information that is in the ical files are pulled from the events.

There aren’t currently any options to adjust the formatting of how it appears once it is imported into the Calendar app or another calendar like Google Calendar.


Lorenzo


Dallas REIG

September 19, 2015 at 12:42 pm

Right, I understand the information comes from the events but they are not pulled how I have the event. Something strips everything and makes it one big paragraph. Did you review the link? Shouldn’t the information come as we actually have it in the event itself?


Tony

  • Support Staff

September 21, 2015 at 5:14 am

Hi Maceo,

This looks like an issue with the iCal when using multiple new lines within the event description.

The content of the event is actually there, but all but the first line is being ignored. I have requested some feedback from our developers on this.

Viewing 12 reply threads

The support post ‘Add ICal button?’ 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