| [FEATURE] View your tasks in iCal [message #5894] |
Wed, 29 September 2004 07:23  |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|