Workaround to fix calendar sync problems

Discussions about the Calendar Tool at lds.org. Questions about the calendar on the classic site should be posted in the LUWS forum.
User avatar
samliddicott
Member
Posts: 77
Joined: Wed May 20, 2009 8:48 am
Location: England

Postby samliddicott » Sat Oct 01, 2011 2:21 pm

TimRiker wrote:I don't know what the status on this is... I've added your script to the phpstack project. The test site for phpstack is here:

https://cdev.lds.org/phpstack/
https://cdev.lds.org/phpstack/ldscalendar/

I hope this is ok with you. Anyone here interested can join the phpstack project to work on this and other php scripts that often get reused on other projects.

I added proxy support to get to the lds.org original page from the community DMZ where this server is hosted. I cleaned up some warnings. I think it's working now. Testers welcome.

[B]samliddicott[/B] I added you as a developer on the phpstack project. There's no attribution in the script. Feel free to add your contact info. I would like to add a church copyright as well if you're ok with that.


Sure, add church copyright, that's fine.
Thanks for adding me as a dev to phpstack.

Double thanks for hosting the script there!

User avatar
samliddicott
Member
Posts: 77
Joined: Wed May 20, 2009 8:48 am
Location: England

Postby samliddicott » Tue Nov 08, 2011 6:36 am

The cdev.lds.org hosted workaround stopped working for me for google calendar. But google calendar is working for me. Has it been fixed properly?

brianarmstrong
New Member
Posts: 1
Joined: Tue Nov 08, 2011 10:42 am

Postby brianarmstrong » Tue Nov 08, 2011 10:49 am

samliddicott wrote:The cdev.lds.org hosted workaround stopped working for me for google calendar. But google calendar is working for me. Has it been fixed properly?


So, today is the first time I have needed to look into this calendar functionality, and feel very fortuate I was able to find this thread. Here has been my experience.

Using the default link provided by the calendar part of the website did not work for me in Google Calendar.

http://lds.org/church-calendar/services/lucrs/ical/subscribe/xxxxxxx

However, both of these did work for me:

https://mail.liddicott.com/ldscalendar.php/xxxxxxxx

https://cdev.lds.org/phpstack/ldscalendar.php/xxxxxxxxx

So for long term use, which would be the more reliable to use?

Thanks,

Brian Armstrong

russellhltn
Community Administrator
Posts: 28902
Joined: Sat Jan 20, 2007 2:53 pm
Location: U.S.

Postby russellhltn » Tue Nov 08, 2011 11:07 am

Use the first one. It appears to have been fixed.

The second one is likely shutdown. The third one stopped working for me.
Have you searched the Help Center? Try doing a Google search and adding "site:churchofjesuschrist.org/help" to the search criteria.

So we can better help you, please edit your Profile to include your general location.

tortdog
Member
Posts: 165
Joined: Mon Jul 28, 2008 7:00 am
Location: Austin, Texas

Postby tortdog » Tue Nov 08, 2011 12:37 pm

Oddly enough, the liddicott.com workaround is still the most accurate for me. After that, the new.lds.org calendar works best (shows all appointments but some from a private calendar do not get to my Android for some odd reason, though they do appear on Google online). And the lds.org calendar (the one suggested by lds.org as the correct one) does not bring over any private calendar entries, though all appear on Google calendar.

n.oliver
New Member
Posts: 30
Joined: Sun May 09, 2010 8:21 pm
Location: USA, AZ

Postby n.oliver » Sun Dec 18, 2011 5:52 pm

samliddicott wrote:I added this line:

Code: Select all

    while (($p=strpos($line, "\r", $p)) && $p<(strlen($line)-2)) $line=substr_replace($line, "\\n", $p, 1);
which replaces inline carriage returns with \n, so I hope that the wrapper is working for more people now.

I don't think any other of your changes were needed - from analyzing existing calendars there were no lines that began without an ICAL field name on the input.


I made a few changes in the top portion to make the script more portable (auto-detect the location of the page). I'm still getting my calendar feed through my hosted code, coming through nice without any issues if anyone needs a third (or fourth :p) option.
http://1b4.it/labs/lds/calendar.php

russellhltn
Community Administrator
Posts: 28902
Joined: Sat Jan 20, 2007 2:53 pm
Location: U.S.

Postby russellhltn » Sun Dec 18, 2011 9:08 pm

Is the script fixing any problems? I've been going "direct" for a few months now. I haven't noticed a problem, but I know a few are strange things with special characters.
Have you searched the Help Center? Try doing a Google search and adding "site:churchofjesuschrist.org/help" to the search criteria.

So we can better help you, please edit your Profile to include your general location.

User avatar
samliddicott
Member
Posts: 77
Joined: Wed May 20, 2009 8:48 am
Location: England

Postby samliddicott » Thu Dec 29, 2011 7:42 am

My server is now disabled.

At one point the https://cdev.lds.org/phpstack/ldscalendar.php/xxxxxxxxx was not working but the real calendar link was; but today I find the situation has reversed so I am using https://cdev.lds.org/phpstack/ldscalendar.php/xxxxxxxxx at the moment.

I note that one of my fixes was to try and provide a fixed ical id for each event to try and avoid spurious google "event details changed" messages. I don't know if this has been fixed in the real calendar code, but mention it in case anyone reading this knows something about it.

wesunderwood
New Member
Posts: 1
Joined: Fri Jan 13, 2012 2:02 pm

To one-way sync your Church calendar to your Google Calendar calendar

Postby wesunderwood » Fri Jan 13, 2012 2:16 pm

CHANGE:
http://lds.org/church-calendar/services/lucrs/ical/subscribe/......
(insecured)

TO:
https://lds.org/church-calendar/services/lucrs/ical/subscribe/......
(secured by adding the "s" to http)

*NOTICE You are on a secured site (https) that generates your url to paste into Google. When I went to my google calendar and made the changed it started working a few minutes later.

SEE EXAMPLE:
secure google calendar https.JPG
secure google calendar https.JPG (54.54 KiB) Viewed 1744 times


:cool: - "Good day!"


Return to “Calendar”

Who is online

Users browsing this forum: No registered users and 3 guests