{"id":945,"date":"2006-02-25T20:59:11","date_gmt":"2006-02-26T01:59:11","guid":{"rendered":"http:\/\/princessleia.com\/journal\/?p=945"},"modified":"2006-02-25T21:02:19","modified_gmt":"2006-02-26T02:02:19","slug":"danger-mouse-and-wp-upgrade-stuff","status":"publish","type":"post","link":"https:\/\/princessleia.com\/journal\/2006\/02\/danger-mouse-and-wp-upgrade-stuff\/","title":{"rendered":"Danger Mouse and WP Upgrade Stuff"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/princessleia.com\/images\/journalpics\/dangermouse.jpg\" alt=\"Danger Mouse\" align=\"right\">Last night we had some friends over for movie night, and we all sat around and watched Danger Mouse.<\/p>\n<p>I hadn&#8217;t seen Danger Mouse in <i>years<\/i> and seeing the cartoons I loved when I was litte now continually disappoints me. So I didn&#8217;t expect much from Danger Mouse, just another thing to get nostalgic about but not actually enjoy anymore.<\/p>\n<p>But I was wrong about Danger Mouse. Afterall, he&#8217;s the ace. He&#8217;s amazing. He&#8217;s the strongest, he&#8217;s the quickest, he&#8217;s the best!<\/p>\n<p>The show is punny and delightful to watch.<\/p>\n<p>This morning I finally upgraded WordPress on my journal, it&#8217;s now running 2.0.1. I was very pleased with how simple the upgrade was.<\/p>\n<p>I&#8217;m not terribly happy with the state of LiveJournal plugins for WordPress. I used <a href=\"http:\/\/somuchgeek.com\/code\/livepress\/\">Live+Press<\/a> for a little bit, but recently just went back to manually posting in both places. When I upgraded today I asked Michael what he was using to cross post and he pointed me at <a href=\"http:\/\/ebroder.net\/livejournal-crossposter\/\">LJXP<\/a> but my lj user tags wouldn&#8217;t show up. I don&#8217;t need all the bells and whistles that came with Live+Press, but I do love those silly lj user tags.<\/p>\n<p>And that&#8217;s what I spent 3 hours working on this evening. I learned a few things about WordPress2, the first being that the WYSIWYG editor is useless for someone like me and should have disabled it as soon as I upgraded. After reviewing bits of the LJXP script I discovered that the WYSIWYG eats the lj user tag &#8211; it had nothing to do with LJXP! ARG! As a side note, I have to point out that I use <a href=\"http:\/\/jason.goldsmith.us\/index.php?p=41\">wp-ljtags.php<\/a> to display the tags on WP, very simple and still works like a charm on WP2.<\/p>\n<p>I commented all $postHeader stuff in LJXP, since I don&#8217;t want a big blurb at the top of every post announcing that it was &#8220;Originally posted on PrincessLeia.com blahblahbal.&#8221; And all the poking of PHP I did for the LJ thing helped me in the next step of the project &#8211; cross posting to Xanga. Now, I abandoned my Xanga journal in 2004 because I liked LiveJournal better and didn&#8217;t have time to manually cross post, but there is <a href=\"http:\/\/blog.mytechaid.com\/archives\/2005\/01\/10\/xanga-crossposter\/\">this plugin<\/a> now to post from WordPress to Xanga. It&#8217;s buggy, doesn&#8217;t properly &#8220;update&#8221; or &#8220;delete&#8221; posts, but since I do all my editing in vim I don&#8217;t really need to edit my entries via the wordpress interface unless I discover a mistake after posting. Well, since I&#8217;m using an lj user tag, Xanga won&#8217;t understand it. So I wrote the following to have Xanga Crossposter convert lj user to a simple clickable link to the person&#8217;s LJ.<\/p>\n<p>        # Change lj user tag into link<br \/>\n        $content = preg_replace(&#8216;[&lt;lj user=\\&#8221;?(.+)\\&#8221;?&gt;]&#8217;, &#8216;&lt;a href=&#8221;http:\/\/www.livejournal.com\/users\/\\1\/&#8221;&gt;\\1&lt;\/a&gt;&#8217;, $content)<\/p>\n<p>Voila!<\/p>\n<p>We&#8217;ll see how things go over the next few weeks, but I&#8217;m hopeful that it&#8217;ll all work well. Oh, and just so I don&#8217;t feel like I wasted my day and didn&#8217;t even use my new tools, here&#8217;s an lj user tag: <lj user=princessleia2>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last night we had some friends over for movie night, and we all sat around and watched Danger Mouse. I hadn&#8217;t seen Danger Mouse in years and seeing the cartoons I loved when I was litte now continually disappoints me. So I didn&#8217;t expect much from Danger Mouse, just another thing to get nostalgic about [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-945","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/posts\/945","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/comments?post=945"}],"version-history":[{"count":0,"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/posts\/945\/revisions"}],"wp:attachment":[{"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/media?parent=945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/categories?post=945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/princessleia.com\/journal\/wp-json\/wp\/v2\/tags?post=945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}