Archive: 2008 January 02

Sweet Progress

By Richard X. Thripp at 2008-01-02T19:02:31Z in Technology, with these tags: netfirms, thripp.com, wordpress, 0 Comments. 363 words.

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 …

Post to Twitter Post to Bebo Post to Delicious Post to Digg Post to Facebook Post to FriendFeed Post to Google Buzz Send Gmail Post to LinkedIn Post to MySpace Post to Ping.fm Post to Reddit Post to Slashdot Post to Squidoo Post to StumbleUpon