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 9:48 am
Location: England

#151

Post by samliddicott »

I shall probably be closing down my server in the next couple of weeks, and so the work-around will no longer be operational.

Would anyone else (or perhaps the church?) host the workaround script? It is a single php script that makes use of /tmp to store log files to help users self-debug any failures they experience.

There is less than 2000 users making use of it.

I suppose whoever hosts it could insert advertising into the calendars :-) Maybe the guys running ldsaudio would try? Anyone have a contact there we could put it to?
EarloftheWest
Member
Posts: 72
Joined: Wed Jan 26, 2011 11:55 am

#152

Post by EarloftheWest »

Sam,

Thanks for all you do. This was a great work around.
Has anyone imported this into something like Hotmail and then synced the Hotmail account with the Google account?
Thanks.
silid
Member
Posts: 70
Joined: Wed Jan 31, 2007 8:54 am
Location: United Kingdom

#153

Post by silid »

I'll host it.

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

#154

Post by samliddicott »

Hah - good man. I've got mormonite.com that you can host it under.
User avatar
TimRiker
Church Employee
Church Employee
Posts: 432
Joined: Sun Dec 19, 2010 5:16 pm
Location: USA, Utah
Contact:

#155

Post by TimRiker »

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.

samliddicott 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.
josephcreed
New Member
Posts: 23
Joined: Sat Apr 16, 2011 1:53 pm
Location: Plano, TX

#156

Post by josephcreed »

I tried using the following link on my Google Calendar:

https://cdev.lds.org/phpstack/ldscalend ... xxxxxxxxxx where xxxxxxxxxxxxxxxxxxx is my calendar ID.

and I get this error in:

Settings Error
Could not fetch the url because robots.txt prevents us from crawling the url.


I also noticed that when trying to test my calendar id on the page https://cdev.lds.org/phpstack/ldscalendar/ the script removes the first number, so for my test I added a 0 in front and then re-performed the test.
User avatar
TimRiker
Church Employee
Church Employee
Posts: 432
Joined: Sun Dec 19, 2010 5:16 pm
Location: USA, Utah
Contact:

#157

Post by TimRiker »

hmmm...

ok, modified robots.txt so phpstack is not included.

I do not see it removing any numbers from the calendar id. I'm not including ".php" in my url, but I've tried it with that included and I can still get an ical file.
josephcreed
New Member
Posts: 23
Joined: Sat Apr 16, 2011 1:53 pm
Location: Plano, TX

#158

Post by josephcreed »

Thank you.

Google let me add the calendar without error, it did not immediately sync. I will give it an hour or two and report back.
TimRiker wrote: I do not see it removing any numbers from the calendar id

I put my calendar ID into the text field on the page (https://cdev.lds.org/phpstack/ldscalendar/) and when I press the button "Test My ID", the first number disappears and the test fails with text that ends in "URL does not work".

Each time I press "Test My ID", the number gets shorter by truncating the first number.

So I copied in my 19 digit number ID and then put a "0" in the front, effectively making the ID 20 digits long. The preceeding character has to be numeric for the truncating to occur, I tried adding an "a" and it stayed in placed and failed.
josephcreed
New Member
Posts: 23
Joined: Sat Apr 16, 2011 1:53 pm
Location: Plano, TX

#159

Post by josephcreed »

josephcreed wrote:Thank you.

I will give it an hour or two and report back.
I am too impatient. :) I changed my sync link by removing the "s" from "https", and the events showed up immediately.
User avatar
TimRiker
Church Employee
Church Employee
Posts: 432
Joined: Sun Dec 19, 2010 5:16 pm
Location: USA, Utah
Contact:

#160

Post by TimRiker »

oops. Regex typo. removing ^[0-9] instead of [^0-9]. fixed.

I hear internally that the lds.org calendar url may be available soon over http as well as https. I don't have a timeline for that yet.
Post Reply

Return to “Calendar”