Avalicious! v1.1 // VOID-STAR.NET

100% cheshire.

Avalicious! v1.1

So, after my success the other day wrestling WP-OpenID into the ground, I thought it was about time to revisit another one of my LJ-to-WP integration plugins, Also LJ Avatar.

This plugin’s idea is great but I’ve always been a bit bleh on the specifics; particularly, I don’t like the way users have to format their names as username@server-without-extension in order to be picked up. I always figured it would make much more sense (and better integration with OpenID) to read off a supplied URL than a name. I also had issues with ALA when I first installed it due to its reliance on remote includes. This was patched pretty quickly with cURL, but the plugin still kept a couple of narky behaviours like not caching images due to a reliance on system().

Hrm.

So this morning, in between loads of washing, I gutted the plugin, re-wrote most of the regexps and logic, replaced wget with cURL and ended up with Avalicious!.

Similar to ALA, Avalicious! hooks off get_avatar in WordPress. It reads out a commenter’s URL, and if it matches one of its internal list of known LiveJournal Server sites, it returns that user’s default avatar. If that doesn’t work, it fails out neatly with whatever avatar it was passed in the first place (Gravatar by default, but it could theoretically be something else if you’re running other plugins).

It works with users and communities for LiveJournal, InsaneJournal, DeadJournal, JournalFen, Dreamwidth and Inksome.

Awesome.

294 words posted 559 days ago at 2:42 pm.

Tell Dee what you think?

Filed under Avalicious, WordPress and tagged with , , , , , , .

Written while feeling accomplished and listening to Oasis, "Fuckin' in the Bushes".

Crossposted to dee.dreamwidth.org, loqia.insanejournal.com, loqia.journalfen.net.

Related posts...


Add a Comment

Add a Comment

A legitimate email address or OpenID-enabled URL (e.g. your Dreamwidth journal) is required. Links to LiveJournal accounts will be removed due to malware on that site. First-time comments are both welcome and moderated. Some HTML is allowed. There is no free speech.