In pictures: Flooding in Cornwall

The BBC has pictures here and here of the awful flooding in Boscastle, Cornwall on Monday. Google News has more. Thankfully nobody was hurt although over 100 people were air-lifted to safety. Looks like animals and pets had a lucky escape too!

“We thought the cat would have had no chance.

“She could not believe her eyes when we saw the exhausted cat, precariously balanced on the edge of a piece of furniture, piled of top of other furniture.

“He must have found an air pocket and is incredibly lucky to survive.

Most Recent Posts

Here’s a new plugin for you all here to play with!
{lastposts} return the most recent posts on your blog!
It has one parameter, posts, which is an integer between 1 and 20 to return that number of posts.
Example:

{lastposts posts='20'}
{if $lastposts != ''}
<br /><b>Most Recent Posts</b><br />
{foreach from=$lastposts key=key item=title}
<nobr><a href="{$siteurl}/archives/p/{$key}/c/1/more/1" title='{$title}'>{$title|truncate:50:"..."}</a></nobr><br />
{/foreach}
{/if}

Smarty and WP, again

Last week I revived my interest in integrating WordPress and Smarty again. I tested the latest release and I’m very impressed by the wealth of options and configurability! I want to use it myself!
To that end I need to get Smarty in there. I wrote a script that fetches a list of functions from the files in wp-includes and outputs a list of Smarty instructions to mirror the current WordPress Template Tags. That’ll make it easy to mirror the tags as they develop.

Kae Verens is doing sterling work finding out what’s working or not!

I think I’m at the stage where Smarty templates are working reasonably ok, but if caching is enabled it falls down because updates to the site need to inform Smarty. That’s relatively easy to do of course!
Next on the list is multi-blog support and that’ll be tricky. It’ll probably be some combination of the Permalink structures already in WP, and prepending the site ID to the URL somewhere. I’m looking at template-functions-links.php – Maybe in the get_settings( 'home' ) bit I can add the wpblog variable. *ponder*
Later… I want to get support for multi-blogs into my hack too before I release anything. Here’s a related post about that. I should have something for people to try next week!