Combining Quickposts and Habminbar

While hacking my sandbox Habari install, I installed both Chris J. Davis Quickpost plugin as well as Matt Reads Habminbar.

Quickposts enables you to bring up a very lightweight post interface instead of loading the full admin area to write an entry. Habminbar adds an admin bar to the top of every page for easy access.

With both these enabled, it seemed natural to try and combine the two. Doing so was suprisingly simple, and the combination works really well.
In habminbar/habminbar.plugin.php, find the following (line 92 in v0.2):


private function get_menu()
        {
                $bar= '
'; $bar.= ''; $bar.= '
    ';

and replace it with


 private function get_menu()
        {
                $bar= '
'; $bar.= ''; if (function_exists('action_auth_ajax_cjd_post_quickie')) { $bar.= 'Quickpost'; } $bar.= '
    ';

This will add a small Quickpost button on the left hand side of the Habminbar which will bring up the Quickpost interface.

Pretty nifty:

Quickpost and Habminbar Combined

June 19, 2007 at 12:44am | 2 Comments
Tagged: , , and

2 Comments so far

  1. Chris J. Davis, on June 19, 2007 at 4:03pm, said:

    That is very nifty. Thanks for sharing this with the rest of us.

    Edit Comment

  2. h0bbel, on June 19, 2007 at 4:10pm, said:

    Well, as easy as that was it's no big deal. Wouldn't be possible without the two original plugins that you guys have created anyway.

    Edit Comment

Leave a Comment?


« Habari Migration: Sneak Preview  —  Gallery 2.2.2 released »

Recent Comments