Because I forget stuff. Part of

Note: It appears you must have reached this page by a deep level URL. In general this site is currently down and unmaintained. See here

About This Post

Originally posted November 5 2004 at 22:11 (which was Guy Fawke's Night) under General. 0 Comments. Trackbacks Disabled.


I know I promised the next thing would be a recoding to semantic markup and cleaning up the stylesheets, but I got carried away. So the front page of my blog now carries a sidebar showing photos I post thanks to

This post is actually also being made from within, blogging that first image to my main blog.

I did come across a small problem with the idea of a sidebar photoblog a in that it’s a bit tricky to get flickr to post to the blog in a nice format. The photoblog actually has its own MovableType blog associated with it (simply because I think this ultimately gives me more control and I like keeping everything in one place). The idea was I’d post photos to this blog and everything would end up in the main blog by some server side include magic (this is basically how the Links of the Moment section works too). The problem is that while flickr allows templates to be designed for posting to the blog, these only work when using the post to blog from within flickr, not when automatically posting emailed photos. In the latter case the post simply consists of a linked thumbnail image. This doesn’t make for pretty sidebar.

The solution to this problem was a little cunning. I already had Brad Choate’s Regular Expressions Plugin installed for various reasons. That mean I could construct a find/replace regular expression to extract the link information from only the post body. Form there on it’s easy to construct what I wanted. The snippet of template code is given below in case anyone wants it (note that regular expressions tend to make my brain go furry so Perl gurus please don’t jump on me).




<$MTEntryDate format="%Y-%m-%d"$> <$MTEntryBody$>[About]

Anyway, it seems to be more or less working. I’ll post photos (hopefully of better quality of than the first which is actually a cropped screenshot of a poor avi) when the mood takes me.

There’s one more problem with the integration of posting photos direct to the main blog like this. That is it there is no support for catergories (though it’s said that their working on this at some point) so I still have to go into MT to fix that, which kind of defeats the point but hey, the photo sidebar isn’t affected so it’s something I can live with (though I suppose it’s also slightly annoying I can’t play around with extended entry and keywords without going to MT as well).
Edit: Oh, the meant to mention that the photo sideblog also has it’s own RSS and Atom feeds. Edit 2: I was obviously half a sleep from a markup point of view when making these changes. Validity now fixed again :-)

Comments (0):

Post a comment

Name and email address are required. Email address is never shown. If you enter a URL your name will be linked to it (this and other links will have the rel attribute set to contain nofollow). Markup allowed: <a href="" title="" rel=""> <em> <strong> <abbr title=""> <acronym title=""> <p> <br />. Anything else is stripped; please be valid. Single linebreaks automatically convert to <br />, double to <p>'s. Additionally anything that looks like a bare URL should get automagically linked. Many acronyms and abbreviations are also automagically handled.

Please note this blog's comment policy

Trackbacks (0):

Trackback URL:


This Crazy Fool

Dr Ian Scott
Croydon (and Gateshead), United Kingdom
Bullding Services Engineer (EngDesign), PhD in Physics (University of York), football fanatic (Newcastle United), open source enthusiast (mainly Mozilla)

More about me [Disclaimer]

You may subscribe to IMS_Blog using the RSS Feed, the Atom Feed or by email.

Creative Commons License

From November 05 Other Years

© Ian Scott. Powered by Movable Type 3.2. This blog uses valid XHTML 1.0 Strict and valid CSS. All times are local UK time. For further details see the IMS_Blog about page.. All my feeds in one.