May
6
(2008)
monotone photoblog wordpress theme
Filed under: general. Tags: mindfulseeing, photoblog, theme, wordpress. | 22 Comments
I just installed the development version of the monotone theme over on my mindfulseeing.com photoblog. What a cool theme. It adapts the colours of the post page based on the colour palette used in the first image on a post. AND, it provides a great archives page with thumbnails from each post. Very cool. This is exactly what I’ve been looking for in a photoblog theme.
Because it’s not an officially released theme (yet) you have to check it out via the subversion repository, but that’s a pretty simple call to svn co http://svn.automattic.com/wpcom-themes/monotone/
Here’s a snapshot of the post page, with background colour pulled automagically from the photograph:
And, the archives page with date selector:
Thanks to Weblog Tools Collection for the tip, and Automattic for creating the theme!
Update: The monotone theme uses a function called image_scrape() which does some cool stuff for the post display on the web, but had the nasty side effect of yanking images from the RSS feed. I fixed my copy of functions.php to avoid the problem, and allow full images in the feed. Here is my trivial modification to the image_scrape() function:
// remove image tag from post_content for display
function image_scrape($entry) {
// don't scrape the image for the feed
if (is_feed()) { return $entry; }
//remove image tag
$entry = preg_replace('/<img [^/>]*src=(\"|\').+?(\1)[^>]*\/*>/','', $entry); /* */
//remove any empty tags left by the scrape.
$entry = str_replace('<p> </p>', '', $entry);
$entry = preg_replace( '|< ([a-z]+)[^>]*>\s*|i', '', $entry );
$entry = preg_replace( '|< ([a-z]+)[^>]*>\s*|i', '', $entry );
$entry = preg_replace( '|< ([a-z]+)[^>]*>\s*|i', '', $entry );
return $entry;
}
Oct
7
(2005)
Random Image Rotator Working Again
Filed under: Uncategorized. Tags: theme, weblog. | 6 Comments
It’s the Week of Things Working Again. First the Flickr albums via FAlbum, and now the rotating banner image, via “Automatic Rotator.”
It’s a simple php script that you put in a directory of images, then every time it is called, it spits out a random image file from that directory. I modified my css file to point the background of the banner div to that script, so every page view automatically gets a random image. To add a new image to rotation, I just drop it in the directory.
Again, if you don’t feel like hitting command+R a couple dozen times to see them all, just hit the handy dandy Banner Image Lister - another simple script that dumps out all files in a directory (including the rotator.php, which will appear to duplicate one of the images at random, and the index.php file itself, which will appear as a broken image).
Thanks to Cole for some gentle nudging to get me to put this together, and thanks to Automatic Labs for putting Rotator together.
Sep
23
(2005)
New theme etc…
Filed under: general. Tags: flash, ming, pachyderm, plugins, theme. | 7 Comments
I just switched the default theme of this blog to the latest K2 theme by Michael Heilemann at binarybonsai.com. Michael created the Kubrick theme that I was using before (and which was also adopted as the default for all new WordPress installations).
K2 is a really nice design, with some great thought to functional layout. It supports a boatload of useful plugins, and displays their magic if they are installed.
Check out the cool ajax-powered search dealie - just start typing a query, and out pops a list of matches. Pretty cool. Comment submission also uses some ajax juju, but it’s a bit funky at the moment, and isn’t quite fully baked yet. Still, quite cool.
So far, I’ve lost my fancy schmancy banner image rotator, but that’s not such a bad thing. I’ll work on adding it back in when I get a chance - I have to recreate the images for the new wider design anyway).
Also, while having another less-than-fully-productive day staying at home with The Boy™ while Janice is sick in bed, I was able to download (but not yet compile successfully) the Ming library for creating .swf files. King suggested this during the Pachyderm developer’s conference call (which I missed because I am out today), and it looks like a much nicer solution than Josh and I were thinking of - Ming would provide a nice happy medium, where we just alter how we generate our .swf-wrapped images, and the dozen flash template files don’t need to be any the wiser. The other option is JSwiff, but it’s a much lower-level library, meaning we’d have to be messing with the icky details of the flash file format. With Ming, we just create objects, and tell it to do stuff. Much nicer ![]()



