Best way to implement Calendar interface with Google Cal for events?

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

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

  • It should be able to indicate different colors for different events based on the feeds they originated from.

  • It would be nice if the calendar could also give different colors based on certains tags in the event names, for example, all events starting with "Test:" would be red and all events starting with "Deadline:" could be blue.

  • The interface should be nice but simple. This should be easy to implement, and no Javascript dependency would be good. Preferably it will just run in PHP.

  • He must provide 3 types of calendar: Month, week and agenda

Features I don't need:

  • Writable (calendars can / should be read-only)
  • Multi-day events or recurring events
  • Links or html content inside events

What would be the simplest preliminary solution to implement it? I am currently using various solutions like FullCalendar and various solutions listed on Site Plans . However, none of them are perfect because either they are no longer supported, or they require javascript, or they don't have all the features I need. I'm also going to check out the GWT-cal plugin and the GData database on Zend calendar, but any feedback on your experience with either would be good.

Can anyone suggest the easiest way to get this to work?

+2


source to share


4 answers


Okay, the word limit on comments is ridiculously low and annoying, so after posting two comments and saying even more, I decided to just post a response. Unfortunately...

Yes, GCal is perfect, but I can't trust the technology-trained students at my school to manually subscribe to feeds. So I want to provide a site where people can choose from a list of courses and automatically receive a custom event feed.



Right now, I have a rough implementation by making a generic Google account that has separate calendars for each course. Then, with some url trickery, I embed a custom iframe that provides a custom read-only version of the calendar with calendars applicable to that specific user. This will probably cause problems when I want to be notified of events and materials by email, and can also go hard into the Google Calendar API. :(

Can you check my other question in Is there something wrong with the way I implement the calendar on my site? and give some feedback?

+2


source


you should check out gwt-cal. versin 0.8.x only provides a day / week view, but branch 0.9.0 implements Agenda view with Month prospectus.



0


source


First of all, GWT-cal is not PHP, it is Java. Second, why don't you want to work with JavaScript? Finally, if you are importing all of this from Google Calendar, why not use Google Calendar as it has pretty much everything you ask for and can handle all user accounts, etc.?

As I understand the project, you are either trying to make one page that displays many different calendars from all students, or each student has to log in and view their calendar. It is right?

0


source


I would create (or find) an app that mixes selected iCal feeds together to create a new feed so that it can be subscribed to GCal / iCal / Outloook / 30boxes / ...

If you still want a display, you can try WebCalendar.

IIRC there are also some Drupal modules for this kind of thing.

0


source







All Articles