Habari Plugin Ideas
I've been playing around with creating a couple of very small Habari plugins lately and it's great fun as well as good PHP experience. So far the only thing that has been made public is a Technorati plugin that fetches your incoming link count, incoming blog count and rank and displays them on the Habari admin dashbord.
This has made me come up with a few other plugin concepts I would like to see implemented in Habari:
- Email Notification
A plugin that notifies you, via email, for pre-defined events on your install. It could be comments, posts and other events from the internal Activity log. - Twitter
A plugin that allows you to have your own Twitter admin panel inside the Habari admin. The plugin would allow you to post directly to Twitter, automatically post new content from your site to Twitter (I use twitterfeed for this now) and view your own/your friends timelines - Google Calendar
This would let you configure a Google Calendar to automatically receive new content from your site. New posts, comments etc. would be placed in a predefined Google Calendar for easy timeline tracking - Data Insert
There are lot of services around that wants you to integrate their code into your own theme. Examples are Google Analytics, ReInvigorate etc. A plugin that provides an interface where you can copy'n'paste the service code directly into some portion of your site, like in the header or footer, would make it easier to put these code snippets where they belong. This would also mean that the data gets inserted regardless of which theme you use.
Post metadata
Published September 14, 2007 12:54
6 comments
Tagged with development, featured, habari, integration, PHP and plugin
1189776985
The first plugin ought not be too hard. You can hook
comment_insert_afterto have your plugin executed after a comment is saved to the DB. You’d want your plugin to check$comment->status, in order to bypass sending email for flagged spam, of course.You can do the same for posts with
post_insert_after. If you want to get really fancy, you’d have your plugins record their data somewhere (a new table, perhaps), and register a cron job to regularly report the status of events since the previous execution (3 comments this hour, no new posts).1189805770
Well, I was looking for something like a email based notification plugin for the eventlog. Then you could possibly select which events you would like to follow and if you wanted instant notification or cron based. A simple version for comment alerts would probably be a good place to start.
1190166308
…on of your template, and before the closing