As a pioneer in the wild source of Habari (Actually, it's not very wild - it's very clean source code.) I've developed plugins necessary to my standard work-flow to make Habari fit my needs better.
Available Plugins
Google AdSense 0.2
My first goal of plugin-awesomeness was to add AdSense ads to my blog. Unfortunately, shortly after I wrote/installed the plugin, I realized how few visitors I actually get, and how little sense it makes to even have them displayed. So I removed them.
I would be happy to extend this to however you want, just ask for it and explain what you would like. I'll make whatever you want changeable a configuration option and give it a pretty GUI for changing.
If you make any changes to the source code, please, let me know - I'd be glad to incorporate them.
Updates
- 0.2 - Changed _() to _t() for internationalization
- 0.1 - First Release
Google Analytics 0.4
After realizing that Google's AdSense would do very, very little for my monetary status, I decided I wanted to really figure out how many visitors I was getting, and signed up for Google's Analytics service. Of course, I didn't want to bother editing every template I would install, and decided to do it the right way and make it into a plugin.
This plugin has only a single configuration variable, your client code, and uses the latest Google Analytics JavaScript code.
Updates
- 0.4 - Prevented the code from being outputted when a user is logged in.
- 0.3 - Prevented the Google Analytics code from being outputted on user/login
- 0.2 - Changed _() to _t() for internationalization
- 0.1 - First Release
Comment HTTP Filter 0.1
It seems that Habari has a nasty habit of allowing comment's URLs that contain just "http://" slide through and try to be actual URLs. This filters out those urls before committing to the database, and cleans them up forever. It is very simple and only replaces URLs are exactly "http://" with null.
Updates
- 0.1 - First Release
FreeStyle 0.1
To maintain the custom header for this blog I duplicated the K2 theme into my user's theme directory and edited the CSS. It goes without saying that keeping K2 up with the repository was quite a bit of work, and, well, sucked. I knew there was a better way to do it, and thus, Freestyle.
Freestyle allows you to insert arbitrary CSS into your blog's header.
Updates
- 0.1 - First Release
Terrific idea on the Google Analytics plugin, Graham. Thanks for creating it. I've downloaded it and will be installing it in my Habari blog (sagrising.cockrumpublishing.com).
There is one series of changes you may want to make, though - changing any instances of _(), like _('Configure') to _t(). I always get a function not found error with calls to _().
Possible idiotic question alert. I am toying with migrating from Wordpress to Habari and I currently use both Analytics and Adsense so am interesting in installing both plugins for Habari.
However, I placed the files in '/user/plugins' and even created a little subdirectory but neither show up in Admin-Plugins.
I am using the bleeding edge - SVN r1346.
Apart from a brain or PHP knowledge, what am I missing ?
...nalytics Plugin for Habari Posted by rick on January 30, 2008 Graham Christensen has released a Google Analytics plugin for Habari. One of the bits of functionality that most of us want is the ability to get statistics for our sit...