phpCollab Community
Discuss everything phpCollab!

The forums are currently in READ-ONLY mode while we upgrade the forums.
Home » Development » Modifications » [FEATURE] View your tasks in iCal
[FEATURE] View your tasks in iCal [message #5894] Wed, 29 September 2004 07:23 Go to next message
d723 is currently offline  d723
Messages: 29
Registered: January 2003
Location: San Francisco, CA, USA
phpCollab friend
MyTasks4iCal v0.2b

I wanted to be able to see my phpCollab tasks in Apple's iCal application so I wrote a little script that does that. This script will get all open, not started, and suspended tasks and return them in iCalendar format for use in Apple's iCal application (and probably Mozilla and others). These are the same tasks you would see under "My Tasks" on your phpCollab home page. The project information, completion status, description and comments are included in the iCal description. The task url is provided for easy access to the task for editing. This is a dynamic page, so set a short refresh interval and you'll always have the most up-to-date information. If you're using iSync you can automatically replicate this info to your phone or handheld.

tested on Apache 2.0, Red Hat Linux FC2, Mac OS 10.3 and iCal v1.5.

You must supply the user id via a query string on the end of the url
(e.g., http://yoursite.com/phpcollab/ical/mytasks.php?user_id=1).
There is no security enforced so anyone that knows the url can access. The included library file is a just copy of the phpcollab library file (v2.5rc1) with all of the session stuff turned off. Requires php v4.3 or greater due to html_entity_decode but will work with this commented out too.

Be sure not to accept iCal's default setting of removing alarms and to do items or all you'll get is the due dates.

This file is currently set up for Pacific Standard Time and GMT turned off. If you have GMT sync turned on, you may need to tweak the date("Ymd\THis\Z") part in the date2ical() function to make the dates come through right. I haven't tested that. Let me know if you do and send me your changes.

It's also pretty easy to make this file show you whichever tasks you want to get to, a certain project, closed tasks. etc. Adjust the query strings at the end of the file.

One known issue: If you are assigned an active sub-task to a project that is not active (closed, suspended, etc), you'll still see the task and it will be missing it's project information. Not sure how to query the project information from the subtask, would appreciate any feedback.

0.2.1b
-added utf8 encode
-fixed bad date on dtstart
0.2.2b
-fixed subtask priority bug
0.2.3b (March 10, 2005)
-fix for v2.4 compatibility

[Updated on: Fri, 11 March 2005 06:29]

Report message to a moderator

[FEATURE] View your tasks in iCal [message #6073] Thu, 11 November 2004 21:09 Go to previous messageGo to next message
xmac is currently offline  xmac
Messages: 1
Registered: November 2004
phpCollab guest
Thanks! I'm a mac user too. It will be very useful.
Great Script [message #6120] Fri, 19 November 2004 06:13 Go to previous messageGo to next message
chiky is currently offline  chiky
Messages: 1
Registered: November 2004
phpCollab guest
Yeah, i'm also a iCal user.. and is nice to get the task there!.

thanks.
iCal in 2.4 [message #6740] Fri, 11 March 2005 03:02 Go to previous messageGo to next message
impluvium is currently offline  impluvium
Messages: 3
Registered: February 2005
Location: Canberra
phpCollab guest
Does anyone have any suggestions for getting this to work with phpC 2.4? We're not ready to upgrade yet, but it would be excellent to get this working. Suggestions and advice gratefully received!
[FEATURE] View your tasks in iCal [message #6741] Fri, 11 March 2005 06:35 Go to previous messageGo to next message
d723 is currently offline  d723
Messages: 29
Registered: January 2003
Location: San Francisco, CA, USA
phpCollab friend
i updated it, it works in my v2.4 install now. not sure what the deal was... doesn't seem like what i changed should have anything to do with the version differences, but hey, it works now. let me know if there's anything weird going on with the due date events.
Re: [FEATURE] View your tasks in iCal [message #7901 is a reply to message #5894] Fri, 26 January 2007 16:06 Go to previous messageGo to next message
designmission is currently offline  designmission
Messages: 16
Registered: August 2003
Location: ventura, california
phpCollab guest
Would someone post a copy of this code again? I'd love to take a look at this and would be happy to share any updates made to it.

Thanks!

Drew
Re: [FEATURE] View your tasks in iCal [message #7976 is a reply to message #7901] Fri, 06 April 2007 18:25 Go to previous messageGo to next message
charlie is currently offline  charlie
Messages: 1
Registered: April 2007
phpCollab guest
This sounds like a fantastic feature. Can you post a link to this code? Maybe I'm missing something but I can't find a link anywhere in this thread...
Re: [FEATURE] View your tasks in iCal [message #7997 is a reply to message #5894] Mon, 30 April 2007 18:10 Go to previous message
designmission is currently offline  designmission
Messages: 16
Registered: August 2003
Location: ventura, california
phpCollab guest
Just curious - do you have this code still?
Previous Topic: [MOD] Grant user admin access
Next Topic: [MOD] mysqli support
Goto Forum:
  


Current Time: Sun May 26 08:12:18 CEST 2013

Total time taken to generate the page: 0.27776 seconds