Quick Search

@UB Today

@UB This Week

@UB This Month


Log In

Submission Instructions

If you would like to be a part of the Calendar Submission group, please fill out the Request Form.

UB Events

Creating a Custom Calendar

The Online UB Calendar of Events contains events in a number of categories, submitted to the calendar by representatives from all over campus. Follow these instructions if you would like to create your own custom calendar based on the data in our central calendar.

A custom calendar is created simply by linking to our program using certain parameters, described below.

The 'head' and 'foot' parameters

You can customize the look of the calendar by creating your own head.html and foot.html files to be wrapped around the calendar entries. For example, your head.html file may have your department's logo and some other HTML, and your foot.html may have a buttonbar or links to the rest of your pages.

The values to the head and foot parameters should be the actual location of the file son the Ubunix server, from the "root" (i.e. do not include http://wings.buffalo.edu or /net/wings/info/www). For example, this page is /net/wings/info/www/calendar/custom.html, so its value would be /calendar/custom.html .

Here are two sample parameters:

head=/calendar/alumcaltop.html
foot=/calendar/alumcalbot.html

If no 'head' or 'foot' are specified, the regular calendar motif is used.

Showing Certain Categories

Since your calendar is customized, you probably will not want to show every event in the database. To select only certain categories, use the 'lc' parameter, with a comma-separated list of categories to allow. Possible categories are:
academic
Academic events, such as drop/add dates and financial deadlines
alumni
Alumni activities, reunions, and events.
exhibits
Exhibits, but only those that don't fit in other categories.
conf
Conferences.
intra
Intramural sports.
lec
Lectures.
music
Performance arts, including theatre, music and dance.
sem
Seminars.
sport
Department of Athletics events.
student
Events by Student Organizations.
work
Workshops.

Here's an example that will only show alumni events and performance arts:

lc=alumni,music

If you omit the 'lc' parameter, all categories will be included.

Events entered by specific people

Say for example that you have entered events into the main calendar, and what to create a custom calendar that lists only the events that you (Joe Schmoe, username jschmoe) or your colleague from your department (Jane Doe, username jdoe) entered. This can be done with the 'lu' parameter which works similary to 'lc'.

Example:

lu=jschmoe,jdoe

Events based on date

By default, you will see events for today and tomorrow. You can customize this by passing in other parameters:
This week
time=7
This month
thismonth=1
All future events...
infinity=1

Tying it all together

Here are some examples of links that produce calendars with custom headers and footers, listing only events in the Alumni category that were entered by user alulld.

This week's events: (example)
http://wings.buffalo.edu/calendar/customcal.cgi?
head=/calendar/alumcaltop.html
&foot=/calendar/alumcalbot.html
&lc=alumni
&lu=alulld
&time=7

This month's events: (example)
http://wings.buffalo.edu/calendar/customcal.cgi?
head=/calendar/alumcaltop.html
&foot=/calendar/alumcalbot.html
&lc=alumni
&lu=alulld
&thismonth=1

All events from today on: (example)
http://wings.buffalo.edu/calendar/customcal.cgi?
head=/calendar/alumcaltop.html
&foot=/calendar/alumcalbot.html
&lc=alumni
&lu=alulld
&infinity=1