Roundcube Community Forum

 

jQuery Fullcalendar plugin (forked by rosali)

Started by horfic, March 07, 2010, 07:39:25 PM

Previous topic - Next topic

Jack!

Quote from: rosali;32492@ Jack!:
Try attached calendar.callbacks.js

At least I can save the recurring event now while using the new calendar.callbacks.js. However something strange happens if you recall a recurring event. I've tested this on my own Roundcube installation and on Mail4us.net Webmail :: Welcome to Mail4us.net Webmail. Both sites show exactly the same results.

Steps to reproduce:
  • Choose a date and click on all-day field (I've chosen 17 January 2011)
  • General tab: Summary field: add some random text
  • Schedule tab: Recur event every: Year
  • Schedule tab: Expires: year: 2015 (that's what I've chosen), day: 17
  • Click on Save

Now the recurring event is saved to the database. Click again on the recurring event you've just added. Magically the expiry date has changed to 18 January 2015 instead of the filled in 17 January 2015.

Use the same just added event and do the following:
  • Schedule tab: Change the expiry date to 2020-01-17 (was 18 January 2015 and should be 17 January 2015)
  • Click on Save

Now the recurring event is saved to the database. Click again on the recurring event you've just added. The expiry date is still all right. i.e. 2020-01-17. Magically the start time is set to 23:00 (instead of staying at 0:00) and the end time is set to 22:59 (instead of staying at 23:59). So this event is now spread over 3 days (!) instead of one. The sad news is, no matter what I do I can't correct the start and end time anymore for this event.

As far I can see this only happens if the recurring event is annual (birthdays for instance).

rosali

Regards,
Rosali

Jack!

#212
Quote from: rosali;32566@ Jack! and Carrot Cruncher

Please check version attached to issue ticket:

Issues - myroundcube - Project Hosting on Google Code
@Rosali: The expiry date doesn't magically change anymore with a recall of recurring annual events (see message #208 of this thread). However there's still one issue left. If you change an annual recurring event that already has been saved to the database, for example change the category (or anything you want), the start and end time automatically change too if you click on save to the database.  The start time is always set to 23:00 hrs and the end time is always set to 22:59 hrs while I only tried to change the category in my example. Thus the event is spread over 2 days. I also tested this on your own site. Same error result.

RandomUsername

Hi,

I'm trying to upgrade my plugins to the latest version but the jqueryui plugin is causing RC to display the error "Inter Server Error". It then fails to load any emails and the calendar page doesn't generate properly.

I'm running the recently installed bug fix release of the calendar plugin and have added the client column to the events table.

Nothing is leaping out at me in any log files as to what the problem is.

Can anyone assist?

Thanks.

rosali

@ Jack!

I guess I found the bug. It is in calendar.callbacks.js around line 733:

       if(endtime > starttime && (starttime != event.start || endtime != event.end)){
          rcmail.http_post('plugin.resizeEvent', '_event_id='+event.id+
                                                 '&_start='+starttime+
                                                 '&_end='+endtime+
                                                 '&_allDay='+event.allDay+
                                                 '&_userid='+event.userid+
                                                 '&_ct='+event.token+
                                                 '&_gmtoffset='+gmtoffset);

See '&_allDay='+event.allDay+ and add it. I missed to submit allDay property which is responsible not to adjust client timezone for all day events.

@ RandomUsername

INTERNAL SERVER ERRORS normally are logged in /logs/errors
Regards,
Rosali

RandomUsername

#215
Quote from: rosali;32610@ RandomUsername

INTERNAL SERVER ERRORS normally are logged in /logs/errors

Thanks, but I actually fixed it by upgrading my roundcube installation to 0.5.

However, the problem I now have is that the calendar plugin isn't showing recurring events from my Google calendar feed. Any ideas about that? Thanks.

[EDIT]Might be related, RC just spat this at me:
Quotecalendar.invalidresponse: ./?_task=dummy&_action=plugin.calendar_getJSON&_url=http%3A//www.google.com/calendar/feeds/xxxxxxxxxxxxxx%2540googlemail.com/private-d5ff15e28c9961a43a5ac770bd61c71e/basic

rosali

Google has changed the json return for recurring events. Now they return a property returning an event entry in ical format. I'm working on it.
Regards,
Rosali

Jack!

Quote from: rosali;32610@ Jack!

I guess I found the bug. It is in calendar.callbacks.js around line 733:

See '&_allDay='+event.allDay+ and add it. I missed to submit allDay property which is responsible not to adjust client timezone for all day events.
Excellent. I can confirm this bug is gone now. Good work.

christianpatrick

I have downloaded the latest trunk revision of the calendar. I installed the mysql and config'ed the calendar and jqueryui. I added them to the plugins in the order of: jqueryui, calendar. However, Roundcube then only display a blank white page. I have tried to log errors and nothing comes up. Any help would be greatly appreciated. I am excited about this calendar. Thanks!

minze_zr

Quote from: christianpatrick;32668I have downloaded the latest trunk revision of the calendar. I installed the mysql and config'ed the calendar and jqueryui. I added them to the plugins in the order of: jqueryui, calendar. However, Roundcube then only display a blank white page. I have tried to log errors and nothing comes up. Any help would be greatly appreciated. I am excited about this calendar. Thanks!

Hi,
I had the same problem today , I changed

$rcmail_config['cron_log'] = true;
to
$rcmail_config['cron_log'] = false;

in /plugin/calendar/config/config.inc.php
That seemed to work.
I have not tracked the underlaying problem yet though.
Maybe a bug report would be in order ?

Hope that helpes,
Minze

christianpatrick

Thanks for the help. However, this option does not work for my server. It still just displays a blank page.

rosali

Enable logging in PHP and check webserver error log if there is nothing in the roundcube logs.
Regards,
Rosali

Davidegb

Hi, forum

1.- Where can I found the translation strig for "All-day" inside the .ICS attached to reminders?

I have searched inside all text files in all plugins, without success.

2.- As i haven't found info about where to sent translations, I have sent some new translations to "myroundcube at mail4us dot net"
Is this correct?
WIll them be added to plugins?

Thank you very much

rosali

Thanks for the translations! I'll add them to next release.
Regards,
Rosali

Davidegb

Thank you!

What about the string I cannot find?

It's "All-day" inside the .ICS attached to reminders

I cannot find it, but it's translated to other languages...