Jevents 2.x (Free Access)

SOLVED - ICal export

Discuss JEvents 2.x for Joomla 1.5-2.5 here - club members can use the special club forum for faster response times.
Forum rules
When requesting support please follow these steps:

1. Update all JEvents add on's first, via the Joomla! Updater
2. Copy and Paste the JEvents Support Information from the JEvents Control Panel.
3. If you get a 500 error OR white page, enable Maximum Error Reporting in Joomla! Global Config and visit the page again, this should give you a more detailed error and help us provide a prompt response.

Postby obelix1990 » Thu Oct 20, 2011 8:12 am

Hello,
I have a problem with Ical export.
I generate a repetitive event (birthday) without hours (tick box), and when I export the birthday category, jevents generate the following file:

BEGIN:VEVENT
UID:494160462fcf3fcd4a2e5e3ac71e4662
CATEGORIES:Anniversaires
SUMMARY:Bon anniversaire Yannick
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:
DTSTAMP;TZID=Europe/Brussels;VALUE=DATE:20111020T100144
DTSTART;TZID=Europe/Brussels;VALUE=DATE:20100106
DTEND;TZID=Europe/Brussels;VALUE=DATE::20100107

SEQUENCE:0
RRULE:FREQ=YEARLY;UNTIL=20200106T235959Z;INTERVAL=1;BYYEARDAY=+006
TRANSP:OPAQUE
END:VEVENT

When I try to import into google, it doesn't work.
The first problem is :: instead of : in DTEND line.
The second, the event is not treated by google except if I remove the ';VALUE=DATE' to have the following:

DTSTAMP;TZID=Europe/Brussels:20111020T100144
DTSTART;TZID=Europe/Brussels:20100106
DTEND;TZID=Europe/Brussels:20100107


Could you help?

Thanks
obelix1990
 
Posts: 34
Joined: Thu Sep 15, 2011 4:23 am

Postby Geraint » Mon Oct 24, 2011 2:54 pm

I can't see in the code where this second : could be coming from.

Which version of Joomla and JEvents do you have?
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42781
Joined: Fri Feb 15, 2008 6:14 pm

Postby obelix1990 » Mon Oct 24, 2011 6:38 pm

Hello Geraint,
Thanks for your reply,
I use joomla 1.7 and jevents 2.0.7
obelix1990
 
Posts: 34
Joined: Thu Sep 15, 2011 4:23 am

Postby obelix1990 » Mon Oct 24, 2011 6:47 pm

This is the export result for this event:

Clipboard01.jpg
Clipboard01.jpg (120.57 KiB) Viewed 832 times


BEGIN:VEVENT
UID:220ea411a77b02b9aad409eefb3b9e1f
CATEGORIES:Anniversaires
SUMMARY:Bon anniversaire Sylvian
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:
DTSTAMP;TZID=Europe/Brussels;VALUE=DATE:20111024T204258
DTSTART;TZID=Europe/Brussels;VALUE=DATE:20101206
DTEND;TZID=Europe/Brussels;VALUE=DATE::20101207
SEQUENCE:0
RRULE:FREQ=YEARLY;COUNT=20;INTERVAL=1;BYYEARDAY=+340
TRANSP:OPAQUE
END:VEVENT
obelix1990
 
Posts: 34
Joined: Thu Sep 15, 2011 4:23 am

Postby obelix1990 » Tue Oct 25, 2011 7:19 am

For help purpose...
This is an event setting who works correctly (as you can see, the start and end time are in use)
Clipboard01.jpg
Clipboard01.jpg (120.15 KiB) Viewed 827 times

and this is the calendar.ics result who is correct

BEGIN:VEVENT
UID:220ea411a77b02b9aad409eefb3b9e1f
CATEGORIES:Anniversaires
SUMMARY:Bon anniversaire Sylvian
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:
DTSTAMP;TZID=Europe/Brussels:20111025T090808
DTSTART;TZID=Europe/Brussels:20101206T080000
DTEND;TZID=Europe/Brussels:20101206T170000
SEQUENCE:0
RRULE:FREQ=YEARLY;COUNT=20;INTERVAL=1;BYYEARDAY=+340
TRANSP:OPAQUE
END:VEVENT

This is the same event without start and end time (tick box full day or time not specified). This doesn't work
Clipboard02.jpg
Clipboard02.jpg (128.38 KiB) Viewed 827 times


and this is the calendar.ics result who is not correct
BEGIN:VEVENT
UID:220ea411a77b02b9aad409eefb3b9e1f
CATEGORIES:Anniversaires
SUMMARY:Bon anniversaire Sylvian
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:
DTSTAMP;TZID=Europe/Brussels;VALUE=DATE:20111025T091430
DTSTART;TZID=Europe/Brussels;VALUE=DATE:20101206
DTEND;TZID=Europe/Brussels;VALUE=DATE::20101207
SEQUENCE:0
RRULE:FREQ=YEARLY;COUNT=20;INTERVAL=1;BYYEARDAY=+340
TRANSP:OPAQUE
END:VEVENT

Thanks for your help....
obelix1990
 
Posts: 34
Joined: Thu Sep 15, 2011 4:23 am

Postby Geraint » Tue Oct 25, 2011 10:18 am

Thanks for the detailed explanation - I have found the problem and it will be fixed in version 2.1.0 (out soon). In the meantime you can fix it by changing line 161 of components/com_jevents/views/icals/tmpl/export.php from
Code: Select all
$endformat = ":%Y%m%d";
to
Code: Select all
$endformat = "%Y%m%d";
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42781
Joined: Fri Feb 15, 2008 6:14 pm

Postby obelix1990 » Tue Oct 25, 2011 12:28 pm

Hello Geraint,
Marvelous, the first problem is solved :idea:
For the second one, in line 159 (same file), you wrote:
$alldayprefix = ";VALUE=DATE";

With this line, calendar.ics generate the following:
BEGIN:VEVENT
UID:220ea411a77b02b9aad409eefb3b9e1f
CATEGORIES:Anniversaires
SUMMARY:Bon anniversaire Sylvian
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:
DTSTAMP;TZID=Europe/Brussels;VALUE=DATE:20111025T141225
DTSTART;TZID=Europe/Brussels;VALUE=DATE:20101206
DTEND;TZID=Europe/Brussels;VALUE=DATE:20101207
SEQUENCE:0
RRULE:FREQ=YEARLY;COUNT=20;INTERVAL=1;BYYEARDAY=+340
TRANSP:OPAQUE
END:VEVENT
I you import the event in google, you have the following problem:
Clipboard01.jpg
Clipboard01.jpg (87.24 KiB) Viewed 822 times


If you place a comment in the line:
// $alldayprefix = ";VALUE=DATE";

calendar. ics become:
BEGIN:VEVENT
UID:220ea411a77b02b9aad409eefb3b9e1f
CATEGORIES:Anniversaires
SUMMARY:Bon anniversaire Sylvian
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:
DTSTAMP;TZID=Europe/Brussels:20111025T142056
DTSTART;TZID=Europe/Brussels:20101206
DTEND;TZID=Europe/Brussels:20101207

SEQUENCE:0
RRULE:FREQ=YEARLY;COUNT=20;INTERVAL=1;BYYEARDAY=+340
TRANSP:OPAQUE
END:VEVENT

Now, as you can see,the google import is working fine:
Clipboard02.jpg
Clipboard02.jpg (80.35 KiB) Viewed 822 times


Is there a special feature for this line, or it should be removed?

Thanks for your help
obelix1990
 
Posts: 34
Joined: Thu Sep 15, 2011 4:23 am

Postby Geraint » Wed Oct 26, 2011 9:15 am

The DTSTAMP field is not a date its a datetime so should not have the VALUE=DATE; piece.

The line
Code: Select all
$html .= "DTSTAMP$tzid$alldayprefix:" . $stamptime . "\r\n";
should not have the $alldayprefix part

Geraint
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42781
Joined: Fri Feb 15, 2008 6:14 pm

Postby obelix1990 » Wed Oct 26, 2011 10:36 am

Hello Geraint,
could you confirl that I have to replace the line 184
$html .= "DTSTAMP$tzid$alldayprefix:" . $stamptime . "\n";

by
$html .= "DTSTAMP$tzid:" . $stamptime . "\n";


and uncomment the
$alldayprefix = ";VALUE=DATE";
at line 159

... other thing, I don't have the \r at the end of the line, is it normal?

Thanks
obelix1990
 
Posts: 34
Joined: Thu Sep 15, 2011 4:23 am

Postby Geraint » Wed Oct 26, 2011 11:32 am

The \r was added in JEvents 2.0.7 to support Novell calendar software - its is not essential.
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42781
Joined: Fri Feb 15, 2008 6:14 pm

Next

Return to Jevents 2.x (Free Access)

  • Who is online
  • View new posts
  • View unanswered posts
  • In total there is 1 user online :: 1 registered and 0 hidden (based on users active over the past 5 minutes)
  • Most users ever online was 94 on Tue Sep 01, 2009 12:33 am
  • Users browsing this forum: Yahoo [Bot]