- Projects -     - Mouldy Soups -     - Mouldy Bread -     - Contact -     - Links -     - Cheap Plastic Stuff -     - Photo Gallery -

Mr Mist’s Blog

It’s very sensible

Archive for January, 2009

Wordpress 2.7.1 beta

Saturday, January 31st, 2009

A WordPress 2.7.1 beta has been created. It’s available here. If you want to get involved in testing then download it now and have a play with it on your testing site. Join the testing mailing list and let them know how your testing goes. Of course this is a beta so not recommended for production sites.

Just over half the 2.7.1 tickets have been fixed for the beta, including things from documentation through to comment feeds.

Funny Virgin Complaint Letter

Wednesday, January 28th, 2009

I thought I must blog this.  It has been blogged elsewhere and has been floating around on emails by the sounds of it, but this complaint to Richard Branson about Virgin Airline’s food is absolutely hilarious.  Some of the petty arguing in the comments is funny, too, but not to the same extent.

In other funny finds, I give you weird product warning labels.  One of my favourites from there is number five -  A smoke detector which warns: “Do not use the Silence Feature in emergency situations. It will not extinguish a fire.”

Red Dwarf returns to TV

Tuesday, January 27th, 2009

Red Dwarf is coming back! Some ten years after the original series finished, it’s coming back for a one-off Easter special weekend on digital channel Dave.  The original cast all seem to be signed up for the two episodes.

How will that go? Ooo I should think it will either be fantastic, and a fitting tribute, or strangely compelling car-crash TV.  Either way, worth a watch I expect.

Cannabis reclassified. Again.

Monday, January 26th, 2009

Five years after lowering Cannabis to a class C drug, the Government has flip-flopped over another issue, decided it is more dangerous, and changed it back to a class B drug. This is a prime example of a pointless measure. I can only assume that it’s meant to be a vote-grabber, but I can’t imagine who really cares that much.

In the end, all this does is send a completely mixed message about Cannabis and other drugs. The plans are to deal with Cannabis differently to other B drugs, but yet it shares the classification. Also, we are meant to believe that it was okay to lower the classification 4 years ago, and yet the right thing to do now – after usage of the drug has dropped – is to tag it as being more dangerous than it was before.

The entire thing seems ill-concieved. I cannot imagine that it will make the slightest difference to anyone who smokes.

Adding entry tags to your WordPress feeds

Sunday, January 25th, 2009

So my entries on here are tagged now (well, the new ones at least), but my feed templates did not have any tagging on them, and I couldn’t see any easy reference to get them included. 

I stumbled upon a handy hint that can be used to cram adverts into your feeds, and figured – with a bit of modification – that could work for tags, too.  Here is the code -

function dm_inserttags($content) {
    if(is_feed()) {
    $content = $content.
the_tags('<hr />This article is tagged with: ', ', ', '<hr />');   
    }
    return $content;  
}  
add_filter('the_content', 'dm_inserttags'); 

The original code hooked in on the_content_rss, but for whatever reason, that doesn’t seem to work.  (There are various open bugs about it not working.)  Instead you have to alter the_content and check if the output is a feed.  Put this into your theme’s functions.php and result – your feeds have tag links back to your blog.


Google