|
Thursday, February 20
Buried in the past
Not that it will rock anyone's world, but I finally fixed an old gaff which made browsing the Nosuch archives less easy than I wanted it. The "Older Entries" link at the end of the page will correctly take you to the archive page containing the last post, and from there you can continue browsing back in time without any extra clicking and scrolling. Shame on me for not doing this sooner, especially since it was only a few lines of PHP to do. In my stumbling around the blogosphere I am always surprised to find a mainstream blog that makes it difficult to dig into the archives. I can understand it, though, since as a blog writer, I tend to be focused on the "now", the recent and the latest, and not the past. But for a first time visitor, the best parts of a blog are buried in the archives. I think two things a blog should have are a search function and a means to easily browse past entries. It's easy to overlook the latter. When I follow a link to an unfamiliar blog, read the post, and am curious to read more from the blog author, here's all the ways this can be made more difficult.
The real shame is that there's lots of great content on the sites I used for examples, but new visitors might never get to see most of it. New visitors to Nosuch, though, can now browse through the time-wasting pointless bullshit in the archives with no additional scrolling and a minimum of clicks. Ain't it ironic? Though I'm a usability wanna-be and lightweight, since I don't provide my visitors with a way to sort the archive entries, and the search I have stinks in dealing with the archives. Other than that, it's a fine glass house I have here. '; } else { if(stristr($filename,"archive")) { $dir=$_SERVER['DOCUMENT_ROOT']; $template='_01_archive.html'; $tail=strlen($template); $thisArchive=$filename; //$files=scandir($dir); $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { $files[] = $filename; } sort($files); $earlyarch=""; $laterarch=""; $prevarch=""; $next=0; foreach($files as $file) { if (substr($file,-$tail)==$template) { if ($next==1) { $laterarch=$file; $earlyarch=$prevarch; $next=0; } if ($file==$thisArchive) { $next=1; } else { $prevarch=$file; $earlyarch=$prevarch; } } } $link=''; $divider=''; if(file_exists($earlyarch)) { $link='< Earlier Archive'; $divider=" | "; } if(file_exists($laterarch)) { $link=$link.$divider.'Later Archive >'; } $link=$link.' '; } } echo($link); ?> |