Gift photo calendar using Google ical files

Wednesday, November 19th, 2008 anna-marie
Photo year calendar example

Photo year calendar example

Looking for some personalised seasonal, christmas or new year gifts?

Use your ical calendars (google or other (others by importing into google)) and your own photo’s to generate a A4 year calendar.  Print to PDF and send to your local print shop for bindin.  Viola! instant personal presents.

Test it out on the demo site.
See how the examples work, then add your own ics url to the query.

The month view styling

The month view styling

Restyle embedded google calendars

I have developed a script for personal use, however added additional coding in the hope that others may use it as well.   The idea for this year calendar was prompted by a post by lindenlan back in 2006.

The css could also be used to simply restyle your google calendar.

Firefox only, although IE also possible if you adjust the IE stylesheet yourself

Note that this has only been tested on firefox on vista and styling may depend on your default font sizes etc and may require tweaking.  I made minimum changes to the main style sheet get what i wanted happening and did not change the IE sheet.

Inputs:

I may develop an html form later, but for now it is url query string driven, so maybe start a text file with your parameters:

src=some google calendar name

Under the calendar settings when you click on the html tag, you get a url - we need the piece that says something like :src=0bajvp6gevochc6mtodvqcg9o0%40group.calendar.google.com.

These could be private calendars - such as your families birthday’s and special anniversaries, or public ones such as,

google calendar colours

google calendar colours

If you have multiple calendars,use src[0]=xxxxx, src[1]=xxxx etc

Coloured calendars

For multi-calendars, colours are a good idea.  We are limited to those that google allows - else we just get the default blue.  Use the embed helper to see the colour options (need to login to google).

  • red and one color only for first calendar:  color=#CC3333
  • pink:  color[0] = #DD4477
  • purple:  color[1] = #994499
  • etc

Months & start date

  • Specify the number of months to return &months=n
  • Specify the start month &start=YYYMMDD

Images

Images can be switched on or off:

  • imagesfile=none
  • or imagesfile=someurl.txt, where the text file contains as many images+1 as months you would like
  • The image file is a text file that looks like this
2009zebra.jpg
http://farm2.static.flickr.com/1004/580865496_d15b16308d_o.jpg
file:///C:/temp/test.jpg
etc

Styles or Stylesheets

My default is aimed at a monthly print view, developed for firefox for my font-size etc.  The times are switched off - they appear just as a note on that day.
I struggled to find some halfway decent other interesting examples of calendar restyling - you could look at using their ideas to create your own stylesheet.

Demos or Examples

Multi calendars overlayed

Multi calendars overlayed

kahaku style

kahaku style

Test it Out:

Resources:

You can also get more information by trolling through linden lan’s posts and comments.  Note that google changes it’s method now and then, so be wary about using any old advice:

If you enjoy messing around with ical files, you could also have a look at ical-events-list, which is about styling a better agenda or list based table of upcoming events.

Related posts:
  1. Google calendar list (agenda) sidebar ‘widget’ A simple way to achieve a sidebar upcoming events for...
  2. Ical Calendar to html options Some considerations in choosing a plugin or script to import...
  3. Ical Upcoming Events List 2.0 Version 2,  A major update is available. Repeating events, a...

One Comment

  1. Posted December 4, 2008 at 4:13 pm | Permalink

    Version 4 of MyGoogleCal is ready. Fixes IE.

    http://www.lindenlan.net/2008/12/04/restyle-google-calendar-4/

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*