Updated version of Jeremy Jay’s fantastic Xanga Archive imported for Wordpress.

Changes in 2.0: (5/13/2007)
1) Timestamp parsing for posts and comments fixed
–timestamp location was corrected
–timestamps were corrected for 24 hour time
–AM and PM were replaced for 24 hour time
2) unhtmlidentities() function disabled (it was adding “?” after every period)
3) All “\n” in the post_content were removed. (Xanga adds an html-line-break whenever a user hits return to start a new line, I have no idea why it was sticking in “\n” at the end of every line. It was just messing up formatting and was not consistent with every post.
4) I changed $post_title to be the day and date; I removed time posted from the title. This can easily be re-inserted by just the time notation.

Please leave a comment if you use the plugin! I’d love to see it used on other sites! Also, if you notice any bugs or have something you would like changed, let me know!

Download the latest version for wordpress 2.x (copy into the wp-admin/importers directory):

Download Xanga Archive Importer for Wordpress
(RIGHT CLICK TO SAVE)

ATTN: A problem that I’ve run into frequently is that the Xanga archive exporter (the machine that makes the archives on xanga.com) fails to correctly insert 0’s into post time! For example, “12:08 PM” would be incorrectly saved in the archive file as “12:8 PM”. I’ve found that the missing digit is always the zero right after the colon, i.e. 3:3 = 3:03, not 3:30. I’ve already contacted Xanga about the error. If you’re having trouble with your timestamps, please go through and correct these little errors before contacting me.


23 Responses to “Xanga Archive Importer for Wordpress”

  1. 1 Andy Rhodes

    I tried downloading the importer, but I get a fatal error message when trying to download it. Is it something I’m doing?

  2. 2 Dan

    Please make sure that you’re right-clicking on the link and selecting “save file as”/”save link as”. Just clicking on the file will make the server RUN the script as opposed to serving it to you for download.

  3. 3 dawn

    This worked so much faster than the hand entries I was having to do for the 4 years I blogged at Xanga.

    Thank you!

  4. 4 Myr

    I tried the plugin, but cannot get it to work.

    I am not sure if I did anything wrong setting it up - even though there is minimal set-up. It shows up on my import list in the admin panel. I browse and select the backed up archive from my HD, click the upload/import button and wait. It seems to be doing something for several minutes - and then tells me: “All done. Have Fun!” But when I go to my blog, or the manage posts section, none of the posts have been added. The file is only 1.8M - and it is an .html file. What am I doing wrong?!

  5. 5 rofovnifo

    Hi all!

    Looks good! Very useful, good stuff. Good resources here. Thanks much!

    G’night

  6. 6 govokinolij

    Hello

    Looks good! Very useful, good stuff. Good resources here. Thanks much!

    Bye

  7. 7 Kaitlin

    I can’t get this plugin to show up in the plugins interface in the admin panel. What’s going on?

  8. 8 kaitlin

    Nevermind, I figured out the problem - duh! It’s an importer not a plugin.

  9. 9 jameswillisisthebest

    This is my first post
    just saying HI

  10. 10 jeno

    I’m new to wp. How exactly do I copy into the wp-admin/importers directory? I’m having a hard time figuring that out. Thanks!

  11. 11 bangkok

    Tired of those now you can

  12. 12 laine

    Nice work!

    The only very minor issue I had was I had to cut/paste some of the entries, like blogthings quizzes, from the “visual” window to the “code” window.

    Overall, this saved me a lot of time and effort. Thank you!

  13. 13 Mike

    Wow, what insanity! All the regular expressions. What else can you do, though? Xanga’s output is chaos. Xanga, unlike LiveJournal, is really not made for technical people :P.

    I don’t use WordPress, so I didn’t test if your script works now. I was in search of a Xanga archiver for people without Premium. It looks like Xanga archive files are of a different format from the regular site, though your regexps might give a good start.

  14. 14 Estetik

    I think a balance between Marketplace and your own site will be the key. But no details about WP Marketplace have been revealed yet? So it might not even be possible to link back to your

  15. 15 estetik plastik

    Very useful information for me. Thank you.

  16. 16 estetik

    Great blog page. Congrats.

  17. 17 Vicki

    Hello,
    I’m desperately trying to convert my Xanga to Wordpress and I tried your downloaded importer above, but it asks me which program to use to open it? Is that because I’m using Vista and Firefox? Which program do I pick? Sorry, I’m such a novice at all this…Thank you!

  18. 18 Jessica

    I have the same question as Vicki…I don’t have the patience to figure out which program I need to open this in…I don’t usually have to mess with this kind of thing. And I know Adobe GoLive is *not* the right program even though my Mac tells me it is. ; )

  19. 19 Soma winterhearts Buy Online

    Soma games Buy Online paid Buy Online Soma

  20. 20 plastik

    Very nice page. Congrats.

  21. 21 Health News & Articles

    news.healtharchive.net - Health News & Articles

  22. 22 otogaz

    Wow, what insanity! All the regular expressions. What else can you do, though? Xanga’s output is chaos. Xanga, unlike LiveJournal, is really not made for technical people :P.

  23. 23 Success

    The importer worked well for me. I got the timestamp error as you pointed out but other than that it was fine.

    Thanks
    Graham

Leave a Reply






My Flickr

Pomerado Hospital and Villa Pomerado  Pomerado Hospital and Villa Pomerado  Pomerado Hospital and Villa Pomerado  Pomerado Hospital and Villa Pomerado  Pomerado Hospital and Villa Pomerado  Pomerado Hospital and Villa Pomerado  

My Last.FM

No recently played tracks to display.