Warning: Declaration of ThemeSwitcherWidget::update($new_instance) should be compatible with WP_Widget::update($new_instance, $old_instance) in /home/kingston/hitormiss/wp-content/plugins/theme-switcher/theme-switcher.php on line 0
Using the upcoming.com RSS feeds in MT

Hit or Miss

Using the upcoming.com RSS feeds in MT

Update: For a more robust solution, check out “Using Upcoming.org’s Extended RSS Feed” and the category-calendar I wrote for Gothamist.

Since I haven’t seen any tutorials on using the new upcoming.org RSS feeds with MovableType, I thought I’d post the steps I followed.

  1. Download and install the RSS Feed MT plug-in.
  2. Use the following code in your Main Index template (ex, insert it in a sidebar on your front page):
    <MTRSSFeed file="http://upcoming.org/syndicate/my_events/XXX";>
    <b>Upcoming.org</b>
    (<a href="<$MTRSSFeedLink$>">profile</a>)<br/>
      <MTRSSFeedItems>
        <a href="<$MTRSSFeedItemElement name="guid"$>"
          <MTRSSFeedItemDescriptionExists>
            title="<$MTRSSFeedItemDescription$>"
          </MTRSSFeedItemDescriptionExists>
        ><$MTRSSFeedItemTitle$></a><br/>
      </MTRSSFeedItems>
    </MTRSSFeed>
    

    In the RSS feed URL in the <MTRSSFeed> tag, replace “XXX” with your user id from upcoming.org (I’ll take this opportunity to brag that I managed to grab a user id < 100). <$MTRSSFeedLink$> automatically provides the link to your user profile on upcoming.org (as long as their current RSS feed format stays the same).

    The RSS feed is pretty straightforward (with item titles and descriptions), except that there aren’t any “link” item elements. So you need to use <$MTRSSFeedItemElement name=”guid”$> to grab the URL to the individual event page.

  3. Alternatively, you can (like me) create a new index template (named “upcoming.org”) with the code above to create a simple text file to use as a page include.
  4. If you have the IfEmpty plugin installed, you can use the following line of code in your template for times when there are no events on your upcoming.org list: (insert this right before <MTRSSFeedItems>)
    <MTIfEmpty expr="[MTRSSFeedItems]1[/MTRSSFeedItems]">
    No current events.
    </MTIfEmpty>
    
  5. So that your event list stays in sync with upcoming.org in-between rebuilding after publishing new entries, comments, etc; you can install MT-Rebuild to rebuild your Main Index template (or your simple page include template) every hour using a cron job.

Now I just have to come up with a new front page design so I can shoehorn in more side bar elements.

21 responses so far (Respond)

Gravatar

This kicks ass. I’ll probably link to this on Upcoming.org next week.

Andy Baio | 27 Sep 2003
Gravatar

Now that it’s working, how would be an easy way to make it display the date and/or time of the event?

Mike | 9 Oct 2003
Gravatar

Step 2 has a typo:
><$MTRSSFeedItemTitle$></a><br/>
has an extra > at the start.

George | 11 Oct 2003
Gravatar

I’m dumb, no it doesn’t.

George | 11 Oct 2003
Gravatar

http://www.feedroll.com is also a handy tool.

Charles | 11 Nov 2003
Gravatar

youve provided a useful aid to customising MT with a useful feature. many thanks – i will be telling people on my forum about your helpful service

bergin

bergin | 13 Nov 2003
Gravatar

using upcoming RSS feeds in MT
http://www.hitormiss.org/archives/001808.php

anil dash’s daily links | 28 Sep 2003
Gravatar

RSS feeds in MT
Making the most of upcoming.org

» LittleThinkTank Elsewhere « | 28 Sep 2003
Gravatar

Sunday already?
Well I’m feeling a little more ambitious today. I actually got dressed! ; ) And I’ve managed to do two…

forty.something | 28 Sep 2003
Gravatar

Adding upcoming.org events to your MT Blog
I linked this on my blog this morning but I thought I’d note it here as well. If you’re using…

ETC. Indulging my inner geek | 28 Sep 2003
Gravatar

Extracting Upcoming.org Data
With a lot of help from Magpie RSS, I have whipped up a personal listing page of events from Upcoming.org. The goal wasn’t to do anything amazingly creative with the data. Instead, I just wanted to make use of the…

idly.org | 28 Sep 2003
Gravatar

subtlety is sometimes more effective
One of the reasons I love the internet is that one can be idly jumping pages via links and happen upon something personally relevant or recent by chance. I hadn’t peroused the links page at Anil Dash’s site in the…

asidesoflife.org/{{parenthetical digressions}} | 28 Sep 2003
Gravatar

Using “upcoming.com” RSS feeds in MT
hit-or-miss: Using the upcoming.org RSS feeds in MT: article detailing how to setup an RSS feed to “upcoming.org”, a new

CSL BLOG | 30 Sep 2003
Gravatar

Upcoming.org Events
As I mentioned before, I would eventually automate my upcoming events listing using mt-rssfeed. Thanks to this tutorial, about five minutes after I started tinkering I was done adding it to the sidebar of this site. I love it when…

A Whole Lotta Nothing | 4 Oct 2003
Gravatar

Upcoming Events
Upcoming.org is a relatively new service that offers a collaborative event calendar. One of the nice features is that it allows you to syndicate your event listing to your own weblog – and this site provides instructions on how to…

scriptygoddess.com | 10 Oct 2003
Gravatar

Change is good.
If you are observant you will notice a few things here and there have changed today. I changed the menu (only on the main page for now, till I’m sure I like it). I put the cam page in the…

//gtmcknight | 12 Oct 2003
Gravatar

http://www.thadedwards.com/sidelinks/archives/000216.html
hit-or-miss: Using the upcoming.com RSS feeds in MT…

digressions | 21 Oct 2003
Gravatar

NYC Events Lists
Today Gothamist launched their events calendar. It seems to similar to mine in scope, but with less of a focus on music (also, their’s is stocked with events by “professionals”). The biggest difference is they are using upcoming.org in conjunction…

Capn Design | 10 Nov 2003
Gravatar

MT as CMS
http://www.kottke.org/03/11/cooperative-web-services “I have seen the future of the web and it is the Gothamist events page. Here’s how it works. Gothamist’s editors use free tools and information (in the form of events already listed in the system) fr…

adobo.monkeyswithchopstix.com | 11 Nov 2003
Gravatar

Easy events calendars
To list upcoming events without going to all the trouble of creating a separate calendar blog, you can use upcoming.org to enter your events (and find other people going to them), and include the list in your blog. As long…

Sillybean | 13 Nov 2003
Gravatar

Pre-weekend maunderings
As you have no doubt noticed, I added a little “Events” section to the right-hand sidebar on the main page. It’s an RSS feed drawn from my profile at Upcoming.org, implemented with the help of the Movable Type RSSFeed plugin….

BostonConfidential | 19 Nov 2003