Wednesday, June 13

Plumbing!

Yes, it's pretty minor, but it's a feature I wanted, and for some reason, neglected. If I had spent an extra 50 calories of thought on it a while back, I could have finished it when I added the last set of features.

You can now link to a particular entry in a discussion! Woooo! Just copy the link from the top of the entry, where it says "(author) writes".

Then you can do neat stuff like this in your comments:
Here's a guy who dares to ask the tough questions.
I'll admit, I'm easily amused. This feature will soon be in the Nosuch affiliates. Progress marches tirelessly on. Let the linking commence!




Older entries

'; } 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); ?>