$smarty.get.*

I don’t know how I never found this before… You can use {$smarty.get.<var>} to get the URL variable you want. For instance, you can use the following ones in WordPress MultiUser:

  • year
  • monthnum
  • day
  • name
  • paged/page
  • category_name
  • wpblog

Unfortunately, these variables don’t seem to be set with Pages, rather than Posts. However, this has given me some tips as to how to fix the .htaccess RewriteRule problems causing Blogsome not to display subsequent pages of monthly archives. Possibly something to do with the fact it uses page, rather than paged, and that for some reason it parses the word page as the name of the post. This looks like not a .htaccess bug at all, now that I think of it.

Toolbox Script Issues

This is more of a personal note, rather than a blog post, but still…

  • timemods.js parts do not work in IE 5.5
  • quicktags.js does not remove some text (as required) in IE 5.5
  • floater.js has some issues with IE - clicking the shrink/grow checkbox when not at the top of the page is buggy. It then moves the box down too far, and keeps moving it down when scrolling
  • In IE, the buttons are too wide. This might actually be a CSS issue, rather than a script issue.

Unfortunately, I don’t have an installation of IE 5.5 to figure out why the first one is so. I’m not that worried about it as it is a modification that can be lived without. Ditto for the second: it just removes the info about what tags are acceptable, and the buttons are just for these. The third one is the one that annoys me - I spent a fair bit of time getting the floater code to work properly, and I thought I had ironed out all of the bugs. It’s also very frustrating that IE doesn’t respect the position:fixed CSS attribute. That makes everything so much easier. (I think this is the section with the code bug. It may not be an IE specific bug, but since IE is the only browser that actually uses the object.makeFixed(); method, it’s the only browser that displays this bug). The final one may have something to do with Installed Fonts. I’m not that sure. And since in general text is a little too wide in IE (such as in the sidebar, where some stuff wraps onto a second line) this looks to be the case.

Moving from Blogsome

Luis Suarez, over at elsua.net wanted to know how to get his posts out of Blogsome. It’s really quite simple - all you need to do is use any XMLRPC offline composer that can get an arbitrary number of posts. ecto is a great example. Then set it to get more posts than you have, and it will grab them all from the server. You may need to learn how to set it all up - I won’t go through that here, but if enough people comment, I will write a tutorial. You can then re-post these entries to another server. IIRC, there isn’t a way to say ‘post all of these entries to another server for me’, so I wrote an AppleScript to do this when I migrated to Blogsome. Basically, it grabbed all of the posts from an Account, and cycled through them, posting each one to Blogsome (after changing the date to match the original, I think - there was an issue where it thought each post was a ‘new’ post, rather than using the old date). If you are on a Windows box, there is a version of ecto for Win, but obviously no AppleScript, so you may wish to investigate other solutions. It should be possible to write a simple program that just does this (copies posts from one host to another, via XMLRPC), but I don’t have the need, so I won’t write one ;) As it turns out, Louis asked for, and received a zipped file of all his posts anyway, but incase anyone else needs to do it fast… Oh, and Louis, I didn’t write a Comment because I didn’t want to have to create yet another account somewhere. Maybe you could consider turning on Comments, and using some sort of Spam protection other than requiring logging in. Casual commenters will be quickly turned off this. All of my Comment Spam is gone, just by using a simple JavaScript - now all I get is Trackback Spam.