I get by far the most support questions about trying to view the tasks iCalendar in the included PHP iCalendar.
I hacked some 401 authentication support into PHP iCalendar, but it doesn’t work for some people. I think it depends on server config and PHP version.
One solution is to go into the PHP iCalendar config file and add the tasks iCalendar with your username/password to the ‘$list_webcals’ setting. It should look like this:
$list_webcals = ‘http://username:email@example.com/tasks/ics.php’;
After you do this, you then need to change line 7 in the calendar.php page to from this:
$URL = $custom->ical_URL."month.php?cal="
$URL = $custom->ical_URL."month.php?getdate="
The ‘tasks Webcal’ should show up in the drop down of Calendars.
I should make this a setting and add these notes to the poor neglected docs.
This post is part of the project: Tasks Pro™. View the project timeline for more context on this post.
Hmmm… as far as catching the 401 error is concerned, I think the most fool proof method may be to search the headers. See http://www.php.net/m[...]ers.http.php for how to do that. Annoyingly it looks like there are two different ways to do it depending on if PHP version < 4.3.0.
The authentication isn’t working for me, but I think it has to do with the fact that I have tasks installed in a directory that is already controlled via .htaccess.
Ack. < wasn’t encoded and the end of my comment is cut off.
By the way, I turned off .htaccess auth everything worked great. Note that I was restricting access by IP address which made the login box that popped up a moot point. If the error is 403 then it should return ‘bad configuration’ or some such error.
I wish PHP iCalendar would add this feature to their app so I wasn’t trying to hack around it.
I wish PHP iCalendar would add this feature to their app so I wasnâ€™t trying to hack around it.