Cold Hard Code

Now with ActionStreams (and a fix for "<mt:event> not found").

I've setup ActionStreams before, and I really dig the idea.  I'm setting it up here, because of the CPAN ActionStreams plugin.  All of this centers around the work I'm doing for the Enlightened Perl Organisation (or Organization, depending upon your Atlantic Ocean perspective).

One thing that bothered me is that the tags didn't work right with the templates provided in the distribution.  Movable Type rightfully complained that some of the tags simply didn't exist.  Trying to save the widget template gave me this error:
  • <mt:authorevents> at line 9 is unrecognized.
  • <mt:eventdate> at line 23 is unrecognized.
  • <mt:event> at line 22 is unrecognized.
  • <mt:event> at line 24 is unrecognized.
  • <mt:event> at line 25 is unrecognized.
  • <mt:eventmodifieddate> at line 26 is unrecognized.
  • <mt:eventdate> at line 27 is unrecognized.
Well, that sucks!  Fortunately, the fix is a quick search and replace.  You just have to change the following:

mt:authorevents=>mt:ActionStreams
mt:eventdate=>mt:StreamActionDate
mt:event=>mt:StreamAction
mt:eventmodifieddate=>mt:StreamActionModifiedDate

That should get you going!

Update:
Some other things I had to debug to get everything working that I thought I'd list here:
  1. Check your blog Activity Log for errors.  I was missing XML::Parser, so the Vox plugin was stopping everything from going and nothing was happening.
  2. Make sure both your blog author name and your display name are the same in every template bit, otherwise ActionStream can't find your stream.

jshirley

Written by Jay Shirley

Jay Shirley combines technical fundamentals with modern, practical savvy. An open source veteran with plenty of notches in his personal and professional belt, the combination of his work and his field vision (soccer metaphor!) has few rivals.

Comments