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

 1

Recent Comments