|
Thursday, October 26
I tinkered with my blogger settings, and I probably broke all my permalinks. My bad. I promise not to change the archive format from monthly. Weekly archives just seemed like too much. I'd rather have one long page load with all the stuff, than to make vistors dig around in a bunch of shorter pages, especially when my navigation links on the site are (currently) so poor.
What's worse, is I'll probably break 'em all again in a few days when I redesign the site. If you come here with a broken URL, look at the little ID# on the end of it, and visit the archives, and you should be able to find the post in question. Yes, I know this sucks. Yes, I know it's major affront to my vistors. These are growing pains. Better to do it now, when I'm getting 100 or so vistors a day, then when I am getting 10,000 (yeah, like that will ever happen. One can dream, though.) '; } 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); ?> |