Sweet Progress

My pages’ URIs don’t have /index.php in them anymore, thanks to this WordPress plugin (Netfirms Pretty Permalinks). I can’t use canonical URIs because the hack requires them to be disabled. :frown: So, just use the links around here when linking to me, as they’re all fine. Looking at the WordPress forum, I’m glad I can have nice links at all.

I was getting memory errors in the administration panel, but they went away when I disabled MySpace, Facebook, and Xanga cross-posting. 2008-01-04 Update: It was the Google Sitemap Generator; I increased the amount of memory available to it (from the default of 16MB to 64MB), and it works fine. MySpace cross-posting still generates blank screens on my end, so it won’t return. I can’t get the threaded comments reply link to work with the new URIs, so you have to use the list below the comment box.

The Netfirms permalinks plugin doesn’t fix calls from PHP scripts using $_SERVER[‘REQUEST_URI’]. They still have the /index.php in them, which broke the sidebar log-in panel and reply buttons in comments. To fix this, in Yet Another Threaded Comments Plugin (YATCP) version 0.6.1, I replaced a portion of the template_functions.php file. This:

function yatcp_get_url(){
$my_url = '';
if($_SERVER['HTTPS']){
$my_url = 'https://';
} else {
$my_url = 'http://';
}
$my_url .= $_SERVER['HTTP_HOST'];
if($_SERVER['SERVER_PORT'] != '80'){
$my_url .= ':' . $_SERVER['SERVER_PORT'];
}
$my_url .= $_SERVER['REQUEST_URI'];
$my_url .= '#comment_selection';
return $my_url;
}

became this:

function yatcp_get_url(){
$my_url .= '#comment_selection';
return $my_url;
}

I’m not going to use the extra functions in the original code, so I removed them.

For the sidebar script, I just hard-coded the log-in/log-out URIs to the home page. Unfortunately, this means you don’t go back to the page you logged in or out from. These are both kludges though; I won’t need them once I leave Netfirms in August.

I changed the layout; the sidebar is stream-lined and the page margins are smaller to leave more space for the content. I’m particularly proud of the banner at the top; it displays three random photos on each page (currently, 26 of my photos are in rotation).

The website is looking pretty good, so I’m going to stop tweaking it for the next month, and instead work on adding photos. :)

2008-01-03 Update: Fixed comment reply buttons and sidebar log-in panel; updated entry.