help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Set custom alarm for event iCal export process?

Set custom alarm for event iCal export process?

6 years 5 months ago
#25221
Hi,

in event page there's the iCal option:
when In clic on the iCal icon, I get the event added in my Apple iCal calendar.
(I suppose that is the same on Windows with Google calendar)

That's a great option.
But I'd need to customize the parameters as we ask me to add an alarm 24 hours before the event. To create an iCal automatic reminder a day before the event.
Do you know how I could manage that?

• I didn't see this option in JEM adminintrator pannels
• I saw 2 php files that produce the link :
- components/com_jem/classes/output.class.php
with the url:
$url = 'index.php?option=com_jem&view='.$view.'&id='.$slug.'&format=raw&layout=ics';$url = 'index.php?option=com_jem&view='.$view.'&id='.$slug.'&format=raw&layout=ics';
- components/com_jem/classes/iCalcreator.class.php
But I can't find where I could intervene...

Could you help me?
;-)

Paul

Please Log in or Create an account to join the conversation.

Re: Set custom alarm for event iCal export process?

6 years 5 months ago
#25225
I think you should go deeper.
The first step is to find the link, but then you should look for the creation of the files.
Those URLs you found just return a .ics file. And now you should find the place where this file is created.

Please Log in or Create an account to join the conversation.

Re: Set custom alarm for event iCal export process?

6 years 5 months ago
#25228
Thanks Egnarts.
I’m quite sure that the .ics file is created from the second file:
components/com_jem/classes/iCalcreator.class.php
with the function createCalendar()

I have added ± line 1767
Code:
$calendar .= 'BEGIN:VALARM'.$this->nl; $calendar .= 'TRIGGER:-P1D'.$this->nl; $calendar .= 'ACTION:DISPLAY'.$this->nl; $calendar .= 'END:VALARM'.$this->nl;
but the code is inserted outside of the folowing tags
Code:
BEGIN:VEVENT END:VEVENT
that’s why it doesn’t work: it should be inserted inside.

so I looked at the function createCalendar() but can’t get through because of my poor PHP knowledge…
Some more help?
;-)

Please Log in or Create an account to join the conversation.

Time to create page: 0.501 seconds