Habari Plugins and the Habari Markdown Plugin


Habari Plugins

http://www.habariproject.org

ha·ba·ri – noun
Definition — Swahili greeting: What’s the news? Habari, a new blogging platform, has a great user interface … but good luck getting some of the key Plugins you’ll want up & running. Well, it’s not that bad, but there are many dead links on the plugin listings page & many plugins in their repository that are slightly busted … The solution I’ve found for most of the plugins is to just add some information about the plugin to the plugin itself. It seems like an odd requirement that plugin code has to, in essence, self-contain its own metadata (as opposed to an external readme.txt file that would just get parsed.) Don’t get me wrong; Habari seems awesome — as does Chyrp — and I hope both of these projects inspire better (admin) user interfaces for other blog platforms or systems.

Habari Markdown Plugin

This file has a fixed version of a Markdown Plugin from the repository. This is what I added: /** * function info * * Returns information about this plugin * @return array Plugin info array */ public function info() { return array ( ‘name’ => ‘Habari Markdown’, ‘url’ => ‘Unknown’, ‘author’ => ‘Unknown’, ‘authorurl’ => ‘Unknown’, ‘version’ => self::VERSION, ‘description’ => ‘Markdown Support for Habari’, ‘license’ => ‘Unknown’, ); } … it seems to work fine; though all I attempted to do was get the plugin to work. Full disclosure:

  1. I did not extensively test the functionality of the plugin.
  2. I’m not a history buff, so I don’t know when the plugin architecture changed which included a requirement for the info function
  3. I’m not an active member of the Habari community yet which is why my alterations to the Markdown plugin aren’t in Habari’s SVN repository
  4. I’m planning on bastardizing more plugins …

Here’s a post on a test site I have that runs Habari 0.6.2:

http://habari.paulgriffinpetty.com/testing-fixed-markdown-plugin

More on Markdown:

http://daringfireball.net/projects/markdown/