使用Google Cal资讯提供活动来实作日历介面的最佳方法?

问题描述:

我正在为我的学校建立一个宠物项目的网站,其中包括所有学生的帐户。我想为每个学生显示一个日历,应该具有以下功能:

I'm building a site for my school as a pet project, which would include accounts for all students. I want to display a calendar for each student that should have the following features:


  • Google日历资讯提供。与XML,ICAL或HTML Feed的兼容性是可以的。

  • It should be able to import events from multiple Google Calendar feeds. Compatibility with either the XML, ICAL or HTML feed will do.

它应该能够根据不同的事件提供不同的颜色

It should be able to give different colors to different events based on the feeds which they originated from.

如果日历还可以根据事件标题中的某些标签给出不同的颜色,比如以Test:开头的所有事件,是红色的,以Deadline:开头的所有事件都可以是蓝色的。

It would be nice if the calendar could also give different colors based on certains tags in the event titles, like all events starting with "Test: " will be red, and all events starting with "Deadline: " can be blue.

界面应该很好,它应该很容易实现,并且没有依赖于Javascript会是好的。

The interface should be nice, but simple. It should be easy to implement, and no dependency on Javascript would be good. Preferably, it will work simply on PHP.

它必须提供日历的3个视图:Month,Week&

It must provide 3 views of the calendar: Month, Week & Agenda

我不需要的功能包括:


  • 写入能力(日历可以/应为只读)

  • 多日活动或重复活动


实现此功能的最简单的预制解决方案是什么?目前,我正在尝试各种解决方案,如FullCalendar,以及计划网站。但是,没有一个是完美的,因为他们不再支持,或需要javascript,或没有所有我需要的功能。我还要查看GWT-cal插件和Zend Calendar GData框架,但任何反馈你的任何经验,这些都是好的。

What would be the simplest pre-made solution to implementing this? Currently, I am trying out various solutions like FullCalendar, and the various solutions listed at the Plans Website. However, none of them are perfect, because either they are not supported any more, or require javascript, or don't have all the features I need. I'm also gonna check out the GWT-cal plugin, and the Zend Calendar GData framework, but any feedback on your experiences with any of these would be good.

确定字词限制的评论是可笑的低和刺激,所以后发表了两个评论,仍然有更多的说,我决定只发布一个答案。抱歉...

Ok the word limit on comments is ridiculously low and irritating, so after having posted two comments and still having more to say, I decided to just post an answer. Sorry...

是的,GCal是完美的,但我不能相信我的学校技术上有挑战的学生手动订阅ical饲料。所以我想提供一个网站,人们可以从一个课程列表中选择,并自动获得自定义的活动供稿。

Yes, GCal is perfect, but I can't trust the technologically challenged students of my school to manually subscribe to ical feeds. So i wanna provide a site where people can select from a list of courses, and automatically get a customized event feed.

现在,我有一个粗略的实现一个常见的Google帐户,每个课程都有不同的日历。然后使用一些url欺骗,我嵌入一个自定义的iframe,给出一个特殊的只读版本的日历,只有适用于该特定用户的日历。这可能会引发问题,当我想要的事件和东西的电子邮件通知,并可能会迫使我详细进入Google日历API。 :

Right now, I have a rough implementation going by making a common Google Account that has separate calendars for each course. Then with some url trickery, I embed a custom iframe that gives a special read-only version of the calendar with only the calendars applicable to that specific user. This will probably raise problems when I want email notifications of events and stuff, and might force me to go into the Google Calendar API in detail. :(

你可以在 http://*.com/questions/1504398/is-there-anything-wrong-with-the-way-im-adplementing -a-calendar-on-my-site 并给出一些反馈?

Can you check out my other question at http://*.com/questions/1504398/is-there-anything-wrong-with-the-way-im-implementing-a-calendar-on-my-site and give some feedback?