All the best equipment in the world won’t help if you can’t see a good photo in a scene. I’m still amazed sometimes when I see what are lacklustre scenes in reality when they’re displayed on my monitor!
Enclosures in WordPress
This is test post. There’s an enclosure attached to this post so take a look at my rss2 feed to find it!
Add the URL of the enclosed media file by pasting it into the “Enclosures” text field. WordPress will figure out how big the file is, and the type of file automatically and save that data in a custom field. You can edit that data later through the usual custom field interface.
Because a remote server has to be contacted, it may take longer than usual to save posts with enclosures! This is normal, so wait until the page has completed loading!
Read more on enclosures to find out why they’re useful.
Currently, you have to add the enclosure in the “Enclosures” text field in the following format:
url_length_type or as an example: http://blogs.linux.ie/download/referers.gif_126007_image/gif
Thanks Matt for pointing out I had a problem with the “Host” line of my code – I left out the “:”
As an exercise I created an “enclosure” custom field handler. It returns the details of the custom field in an array which I print using the following Smarty code in post.html under the call to {custom_fields}:
{if $enclosure != ''}
<blockquote><b>Attached Enclosure</b><br />
File: <a href="{$enclosure.0}">{$enclosure.0}</a><br />
Length: {$enclosure.1} bytes<br />
Type: {$enclosure.2}<br /></blockquote>
{assign var='enclosure' value=''} <!-- reset enclosure variable again! -->
{/if}
The Global Test
Finally! The Global Test is available for all to see! My, my, makes for a good read! (via Matt)
Savant : GettingStarted
Savant is another PHP templating engine. Here’s the getting started guide, with a nice Model-View example.
Late night thoughts on browsing the Iraq tag on Flickr
Here’s a thoughtful piece on the future of personal media publishing.
What happens when Iraqis start posting pictures on a (soon to be) popular photo portal where it is easy for Americans (geeks now, general populace to come soon) to find them? What happens when pro- and anti-occupation Iraqis start posting graphic pictures to make their points?
I subscribed FF Sage to the Iraq tag on Flickr.. it’s fascinating seeing the images popup in my aggregator!
Google Your Site For Security Vulnerabilities
How do you find security risks on your site? use Google! That’s how! Well, possibly not.
Here’s a guide to exploiting PHP applications. Hmm. Must read.
Gift Grub – Hector and Tom Cruise
Gift Grub on Today FM is a national institution by this stage, and it’s brand of humour is legendary! You can listen to past episodes on their website, and I recommend the Hector & Tom Cruise one. Great ending to it!
Henriette's herbal medicine pages
This site for reading later.
Ken Bigley Executed
Despite all that his family did to publicize his plight, how others others protested and tried to get help for him, and the fact that the Irish Government issued him with an Irish passport, Ken Bigley was executed yesterday afternoon.
The same on Aljazeera.com.
Commenting on the new report, Paul Bigley said: “I have heard nothing at all.
“I have been optimistic and remain optimistic.”
Paul said he was praying the news turn out to be untrue.
LiveSearch – Search Results As You Type
Now, this is a bit of a downer. LiveSearch looks like an excellent way to search because, as you type search results pop up magically!
Unfortunately it’s licensed under the Apache 2.0 License which is incompatible with the GPL, the license uner which WordPress is distributed. It would be legal to use it here without distributing those modifications, but that’s of no use to anyone else and I don’t want to maintain yet another source tree! Time to talk to the author…
I just noticed, CollyLogic has a “Live Preview” of your comment as you type it. That’s nice!
Here’s what it looks like in action! (via the support forum.)

