Blogs

Getting WordPress and Flickr talking to eachother

The WordPress installation process was really so painless and took so little I would actually expect something to go wrong. Ok, yeah, it did – there’s a change to make if you’re using PHP 5.

Then, I tried getting Flickr’s Blog This button to work, and lo and behold, it did… while posting HTML-encoded entities, thus generating posts that weren’t really too good to look at, unless you’re a webdesigner with a strange fetiche.

To correct this, all you need to do if you’re running WordPress 1.2.2 is to go to xmlrpc.php and change line 1287 from:

$post_content = format_to_post( $contentstruct[ 'description' ] );

To this:

$post_content = format_to_post( html_entity_decode( $contentstruct[ 'description' ] ) );

This tells the XML-RPC thingie to unencode the actual post content, and you’re done. Yay! :)

If anyone is aware of any problems that might cause, please let me know, but so far it works perfectly.

Blogs
Geek
General

Comments (0)

Permalink

Frost pist

Hey there, and welcome to my new weblog. I got tired of keeping two separate blogs – the one at JRoller , in English, and the other one at JavaBlogs.com.br (host down more often than not, so don’t worry if you can’t go there just yet).

So I’m starting this new blog consolidating the two. It also has its own domain name, a short and cute one. That is, if you don’t speak Portuguese. In this case, it means “rubbish”. But I find it cute, anyway, and it sort of communicates the intent of this blog, which is to be more of a dumping ground of ideas than actual thoughtfully elaborate articles, essays, or whatever. The posts here should not take much more than a minute to read, so you should be able to go through them quite easily, and I should be able to post more often, even though I’m not sure that’s a good thing. :)

I’ll be changing all sorts of things during the next few days, so don’t link to this site just yet – I should mess around with the permalinks and layouts and all the stuff that can break those.

Oh, and if you’re wondering how to get Flickr to work perfectly with WordPress 1.2.2, there’s a one-line change you need to do in order to get the post to show up correctly, instead of the encoded XHTML source. I’ll detail it later.

Cheers everyone!

Blogs
General

Comments (2)

Permalink