Update (Feb 26th, 2009): The current version of the Xanga Importer is version 3. The code and instructions have been updated for WordPress 2.9.2. If you experience problems please let me know and be sure to indicate which version of WordPress you’re using!
Note: For those of you looking for a way to import Xanga posts in to WordPress without reading techno mumbo-jumbo, then scroll down until you see the heading “Downloading and Using”.
Fixing the Xanga Archive Importer
I’ve used Xanga since April 2003, so when I started up www.popeonabomb.com as a mirror to the blog, I of course wanted to import Xanga posts in to wordpress. I looked around for solutions, and eventually I discovered the Xanga Archives Importer (list at the WordPress).
I imported my posts, and I noticed that the Importer failed to properly handle some comments. Specifically, it decided that the majority of comments were Anonymous. I started poking around, and I discovered the problem only existed for posts from mid-June of 2005 and newer. The import code determines the author of a comment by the URL embedded in the comment. During June of 2005, Xanga changed the way they linked to a commenter’s blog.
Prior to mid-June of 2005, the URL had the format: http://www.xanga.com/home.aspx?user=the_users_name
After mid-June of 2005, the URL has the format: http://www.xanga.com/the_users_name
The import code hasn’t been maintained in a while, and when it encounters a comment with the new URL format, it fails to distinguish the name of the commenter. The name isn’t found so the import decides the comment is anonymous.
I am not sure why this bug had never been addressed. I found 5 versions of the original code (with the last update occurring to the original on May 13th, 2007) and each contains this error. And the error has been around since 2005.
Either way, I updated the code. Now if a comment is found to be anonymous, the code will attempt to process the author’s code using the post-June of 2005 URL format. Since Xanga does allow anonymous comment, if the author is still found to be anonymous, it is presumed to be an accurate result.
Downloading and Using:
Note: The importer requires that you have a premium Xanga account. If you do, then download an archive of your blog. (When logged in to Xanga, go to the private view of your site, and from the settings menu choose “Webblog Archives”)
- Download my latest version of the importer here (Verison 3).
If you need, you can download my original update to the importer here.)
- Extract the PHP file, and upload it in to the /wp-admin/import directory.
- Your Xanga archive comes in a zip file, extract the contents to a folder on your desktop
Note: You cannot upload the zip file itself, so be sure to extract the contents!
- In WordPress go to Tools -> Import -> and from the list choose “Xanga”
Earlier versions of WordPress may find the option under Manage -> Import -> and select “Xanga”.
- Click the “Browse…” button and select a Xanga archive .HTML file to upload
- Click “Upload and Import”
- The posts will be imported and you’ll be told how many posts and comments were imported.
Note 1: If you accidentally upload the same file twice, don’t worry – it won’t upload duplicates
Note 2: It does not currently upload the title of the post – the post will be titled with the date. I hope to update this soon.
Viola.
Popularity: 72% [?]