WordPress Admin Bar

Note of Plugin Discontinuation:

WordPress 3.1 features a built-in admin bar like this, so I will no longer continue development of this plugin. I recommend uninstalling this plugin as it will no longer be maintained.

Description:

This plugin creates an admin bar at the top of your site for logged in users (i.e. you) based on the design of the admin bar located at WordPress.com. It has links to all popular areas of the admin area, saving you time.

It requires no theme editing whatsoever — just upload and activate and you’re done.

Download:

Adding Custom Themes:

If you’re the author of a WordPress theme or just otherwise wish to add an custom admin bar theme of your own, please check out this plugin’s theme API.

Screenshots:

Frequently Asked Questions

Q: Some plugins don’t show up in the admin bar. What gives?
A: The author of the problematic plugin has a is_admin() test when creating their admin menu which means that if you’re outside of the admin area, their plugin won’t register it’s admin menu. Therefore it of course won’t show up in my admin bar. Contact them and ask them to remove the is_admin() test (or do it yourself).

532 thoughts on “WordPress Admin Bar

  1. Pingback: WordPress Admin Themes - Blog Tipz | Make Money Online

  2. Hi. Great plugin… so much easier now… shame you can’t replace the dashboard completely with it, or at least have it there alongside the dashboard.. anyhow I digress so soon.

    It seems that some plugin authors put their config panels on the top level, but this plugin does not detect them, 2 that I have cound, podpress and CyStats. The first is not really a biggy, but the stats page is so nice to have.

    I have hand cranked a hard code in but any help much appreciated.

  3. [quote comment=”29562″]It seems that some plugin authors put their config panels on the top level, but this plugin does not detect them[/quote]

    You need to contact the authors of those plugins then. My plugin supports additional top level menus and displays them correctly, if done right.

    Refer them to this page on the WP Codex.

  4. [quote comment=”28095″]The only problem I have is when I look at my site with IE, the bar shows up below the footer of the site.[/quote]

    Must be an issue with your site or something. It works fine for me in IE7 with the default theme.

    [quote comment=”28030″]The new version is great! Would it be possible to have the admin bar appear on the admin pages as well??[/quote]

    I’ll release 2.0.1 right now that has this as an option. Just edit the plugin’s file and uncomment the two hooks.

  5. HI, I just downloaded the latest version and my issue with added plugins not appearing on the menu has taken an interesting turn, they still does not appear on the menu when on the standard site and appear twice when on an admin page (but only once on the dashboard menu). Is this still an issue with the way both the other plugins are inserting their menus?

    One other thing: can we get an option to add the menu or not in the admin section (or default to on – removing the dashboard one), or else the upgrade path will be problematic if I have to remember anything past a couple of hours ago?

    This is still a cool plugin though 🙂

  6. Oh, for info I have checked both the plugins I am using (CyStats and podPress) and they are both using the add_menu_page() function correctly:

    add_menu_page('CyStats Statistics Plugin', 'CyStats', 8, __FILE__, 'cystats_admin_index');
    ...
    add_menu_page('podPress', 'podPress', $permission_needed, 'podpress/'.$starting_point.'.php');

  7. Sorry for the comment spamming, but I´ve just tried out the new version (with the hooks uncommented) on three different Wp installs (wp 2.1.5, wp 2.2 and wpmu 1.2) and the admin bar does not show up on the admin pages. There is a white space on top were it should be, but that´s it. On the public pages it works as expected.

  8. Ah ha. You are right, the plugins do not call the admin stuff in the right place. I have passed this on to the authors.

    I think there is still a bug in the menu bar code in that about line 59 of wordpress-admin-bar.php where you include the menu stuff, you should exclude this if you are on an admin page because it has already been called by wordpress and the second call adds everything a second time.

    if(!is_admin()) { // added to exclude being called twice in admin mode
    include( ABSPATH . ‘wp-admin/menu.php’ );
    }

    Thanks

  9. I LOVE this plugin. Unfortunately, when I use it in the admin area, in the write post area, it throws the textarea into disarray. Same with the plugin editor textarea (which I noticed when I recommented those two lines in the plugin). I’m using Firefox 2 on a mac with WP 2.3.2.

    Like I said, LOVE this plugin. Drop down menus for the admin area should be part of the core.

  10. Pingback: o2 » Szeretnék ilyet

  11. Pretty awesome plugin! One thing, though, you might want to put a stupidly high z-index in the css, like 2000, to make sure that the admin bar opens up over everything else on the page. The Freshy theme, for example, has it’s header image at a z-index of 200 because of the way it handles the custom headers, I believe.

  12. Another issue, which is small since it only affects admins and not surfers, is a Warning on the bottom of the page. I narrowed it down to the admin bar plugin out of all of mine.

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Array' was given in /home/citronix/public_html/wp/wp-includes/plugin.php on line 164

  13. [quote comment=”36861″]Another issue, which is small since it only affects admins and not surfers, is a Warning on the bottom of the page. I narrowed it down to the admin bar plugin out of all of mine.[/quote]

    You sure that’s my plugin causing the problem? It’s the only one activated and it goes away when my plugin is deactivated?

    I have errors showing on my WP 2.5 dev blog and all I got was notices (which I just now fixed) and no warnings.

  14. I went through my plugins enabling/disabling them one by one, and Admin Bar was the one responsible for that Warning on the bottom of the page. That, and the fact that it doesn’t appear when I’m logged out seems to indicate an element that is only active when I’m logged in, such as the admin bar.

  15. [quote comment=”36923″]I went through my plugins enabling/disabling them one by one, and Admin Bar was the one responsible for that Warning on the bottom of the page. That, and the fact that it doesn’t appear when I’m logged out seems to indicate an element that is only active when I’m logged in, such as the admin bar.[/quote]

    Must be a bug in WordPress then that gets fixed in 2.5 then. *shrug*

    And you shouldn’t have PHP warnings on anyway in a non-development environment. 😉

  16. OK. Maybe I spoke too soon.

    I did notice *one* little issue: performance is erratic when viewing a site with Admin Bar enabled using the Flock browser on Mac OS X. Anybody else notice this?

    Granted, Flock has a pretty minor user base. Our site has never had a visitor using Flock (except myself), so I’m not worried. But thought the developer might be curious.

    Thanks!

  17. Pingback: Wordcast 1: Wordpress Weirdos | Kym Huynh

  18. Pingback: Twenty Sided » Blog Archive » Plugins Used

  19. Pingback: Plugins used | quirksmode

  20. [quote comment=”44490″]Hope to see this updated to compatability with WP 2.5.[/quote]

    No updating required. I’m using it on WordPress 2.5 as we speak. 🙂

  21. [quote comment=”46705″]I am trying the plugin but see no change in the admin panel at all? What am I missing?[/quote]

    Never mind… I am stupid. Figured it out. ::embarassed::

    Works great!!!

  22. I have the plugin installed and activated on 2.5 but all it’s doing its loading in the CSS file. The php for the menu never gets processed and the Javascript never gets loaded. It’s not even showing the Javascript when I view source. Any thoughts?

  23. [quote comment=”48920″]I have the plugin installed and activated on 2.5 but all it’s doing its loading in the CSS file. The php for the menu never gets processed and the Javascript never gets loaded. It’s not even showing the Javascript when I view source. Any thoughts?[/quote]

    Do you have <?php wp_footer(); ?> in your theme’s footer.php?

  24. I love this plugin! It is very useful, but limited: how can I have it appear also in an admin-page? Thanks!

  25. It would be good if there were a plugin option page that allowed to to select whether it was visible in either blog or admin mode, instead of hacking the code and reading the comments… every time I upgrade, I gotta remember to do it 🙂

  26. [quote comment=”50174″]I love this plugin! It is very useful, but limited: how can I have it appear also in an admin-page? Thanks![/quote]

    Edit the plugin and uncomment lines 34 and 35.

    [quote comment=”50184″]It would be good if there were a plugin option page that allowed to to select whether it was visible in either blog or admin mode, instead of hacking the code and reading the comments… every time I upgrade, I gotta remember to do it :)[/quote]

    It’s not a hard fix and it’s not like I release a new version every week. 😉

    But yes, eventually I plan on adding an options page for removing specific items as well as a toggle for the admin area. I just have higher priorities and the plugin works fine without it, that’s all.

  27. That worked like a charm! Now, if only I could customize what shows for admins vs. contributors… Thanks!

  28. There is a major problem. With your plugin, I can’t see the blinking cursor (i.e. the “|” that blinks that shows your positions in a textarea or searchbox, where to type). Users can’t really edit their posts or comments if they can’t see this cursor.

  29. [quote comment=”50246″]That worked like a charm! Now, if only I could customize what shows for admins vs. contributors… Thanks![/quote]

    It’ll only show items that the user has access to (or at least it should).

    [quote comment=”50360″]There is a major problem. With your plugin, I can’t see the blinking cursor (i.e. the “|” that blinks that shows your positions in a textarea or searchbox, where to type). Users can’t really edit their posts or comments if they can’t see this cursor.[/quote]

    Ugh, I thought I fixed that. It’s a CSS layering issue. The cursor blinks fine farther down the page if you scroll up, assuming you have a decent sized monitor.

    I’ll see if I can fix it.

  30. Thanks Viper007Bond for the quick fix! Works like a charm… maybe, somehow in the future you can retain the ability to scroll with the menu and still have blinking cursor work…

    Also, perhaps, in a future version, a link to the actual site i.e., “Visit Site”, may make sense. THANKS! I love this plugin….

  31. I spoke too soon… I have a Flash header (as many sites do), but the drop-down menu is behind it so I can’t see all the options. Confirmed in FireFox and Internet Explorer.

  32. [quote comment=”50936″]Thanks Viper007Bond for the quick fix! Works like a charm… maybe, somehow in the future you can retain the ability to scroll with the menu and still have blinking cursor work…[/quote]

    Yeah, shame that had to go, but oh well.

    [quote comment=”50936″]Also, perhaps, in a future version, a link to the actual site i.e., “Visit Site”, may make sense. THANKS! I love this plugin….[/quote]

    Huh? You’re already on the site, why do you need a link to it? And if you’re using it in your admin area, you can click the existing one, can’t you?

    [quote comment=”50938″]I spoke too soon… I have a Flash header (as many sites do), but the drop-down menu is behind it so I can’t see all the options. Confirmed in FireFox and Internet Explorer.[/quote]

    99% sure there’s nothing I can do about that from my end. You have to set “wmode” to “transparent” on the Flash file.

  33. I took care of the Flash issue, it was entirely on my side.

    However, the “Edit Post” feature in your plugin seems faulty. When I browse a post as admin and click on it, it always takes me to a different post. I tried in all browsers and across many posts.

  34. [quote comment=”51641″]However, the “Edit Post” feature in your plugin seems faulty. When I browse a post as admin and click on it, it always takes me to a different post. I tried in all browsers and across many posts.[/quote]

    You have a second loop, like “latest posts”, in your sidebar, don’t you? This is causing the problem. It shows an edit link to the last post to be displayed.

    I couldn’t think of a solution until right this second. I’ll go play around with my code and see if I can get it to work.

  35. Great plugin. I appreciate that I can right-click from the drop-down menu, and open the new page in another browser tab. However, I deal with many plugins, and thus I have a long list of options in the “settings” listing. It’s almost full and I wonder and your plugin will deal with that, after I add two or three more plugins…
    Thanks…
    Chris Masse

  36. [quote comment=”52178″]It’s almost full and I wonder and your plugin will deal with that, after I add two or three more plugins…[/quote]

    I’d imagine it’ll probably just keep going off your screen. I don’t think there’s any other way short of manually making a new column after X rows and that wouldn’t be the best solution for everyone (mainly me as I run 1920×1200, heh).

    Since my planned options page for this plugin hasn’t been coded up yet, a short-term fix is to throw together a mini-plugin for yourself to modify the list.

    Here’s some example code: http://viper007bond.pastebin.com/f75b791b7

  37. [quote comment=”55125″]Weird… I don’t see “Bad Behavior” in my “Settings” list… Do you?…
    Thanks,
    Chris Masse[/quote]

    I don’t use Bad Behavior anymore. Too many false positives.

    And if it’s not showing up, then that’s a BB issue (adding the menu incorrectly or something). Nothing I can do about it.

  38. Viper,
    Thanks for your reply.
    1. Yes, too many false positives. Out of curiosity, which anti-spam plugin are you using, then?
    2. OK, I’ll contact “Bad Behavior”.
    3. For your information, I am also using another admin menu plugin (“Lighter Admin Drop Menus”), and this one has “Bad Behavior” listed.
    Have a great day,
    Chris Masse

Comments are closed.