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 comments to WordPress Admin Bar

  1. Viper007Bond says:

    zonebattler on February 6th, 2009 at 2:04 AM wrote:

    On all subsequent calls until now, all checkboxes are neatly listed in the _same_ row, regardless if they are 1st-level or 2nd-level options:

    It’s a CSS issue. I thought I fixed it, but apparently not. Doing the same thing on my blog.

    zonebattler on February 6th, 2009 at 2:04 AM wrote:

    Second, the admin bar’s “Plugin” tab icon of the little arrow ist trunctated (cut in half) when the blog is viewed with the Opera browser:

    It’s Opera’s fault. Looks fine here in Firefox and I’m not sure what’s causing it. :/

  2. zonebattler says:

    Viper007Bond on February 6th, 2009 at 2:58 AM wrote:

    [quote comment="227128"]On all subsequent calls until now, all checkboxes are neatly listed in the _same_ row, regardless if they are 1st-level or 2nd-level options:

    It’s a CSS issue. I thought I fixed it, but apparently not. Doing the same thing on my blog.

    zonebattler on February 6th, 2009 at 2:04 AM wrote:

    Second, the admin bar’s “Plugin” tab icon of the little arrow ist trunctated (cut in half) when the blog is viewed with the Opera browser:

    It’s Opera’s fault. Looks fine here in Firefox and I’m not sure what’s causing it. :/ [/quote]

    Thanks a lot for the quick response! Well, if you can live with the CSS issue, so will I!

    And about the arrow icon being cut in half by Opera: it seems to be a spacing and/or padding issue. Are there any tables involved with fixed cell width? Opera is renowned to be quite precise (if not stubborn) in interpreting HTML code whereas other browser seem to behave more tolerant to inplausible parameters… ;-)

  3. zonebattler says:

    Addendum: The “cut triangle icon case” seems to be an issue of the plugin’s own color schemes: The problem does *not* show up when I switch to the “WordPress Classic” theme with its more generous spacing between the dropdown menues…

  4. Viper007Bond says:

    zonebattler on February 6th, 2009 at 3:51 AM wrote:

    Well, if you can live with the CSS issue, so will I!

    No, it was fixed in v3.1.3. ;)

    zonebattler on February 6th, 2009 at 3:51 AM wrote:

    And about the arrow icon being cut in half by Opera: it seems to be a spacing and/or padding issue. Are there any tables involved with fixed cell width? Opera is renowned to be quite precise (if not stubborn) in interpreting HTML code whereas other browser seem to behave more tolerant to inplausible parameters… ;-)

    No, the entire admin bar is an unordered list with inline list items.

  5. zonebattler says:

    Addendum 2: Fixing the CSS issue of not indented sub-items

    Adding the lines:


    .wpabar_toplevel ul li {
    padding-left :25px;
    }

    in the wp-admin.css does the trick! (courtesy of Lexikaliker)

  6. Viper007Bond says:

    zonebattler on February 8th, 2009 at 8:31 AM wrote:

    Addendum 2: Fixing the CSS issue of not indented sub-items

    Was my fix in v3.1.3 not sufficient?

  7. zonebattler says:

    Actually, it wasn’t. But never mind, the solution I found works fine! Thank you nevertheless for your quick support.

  8. Viper! I just tried this for the first time and it’s blowing my mind. I’ve minimized the sidbear in the admin and might never need it again, your plugin is better!

    That said, I have a huge site with hundreds of users and I need to be able to control the defaults to hide the mostly useless items like ‘tools’. Looking at your code I can see that you built in the concepts of $this->defaults['hide'] for this purpose but never got around to building an admin UI to populate the list. Luckily I hate the idea of building a UI as much as you. If someone has enough users to need this feature they should know how to call a hook!

    So I think you should just add a filter on the $this->defaults array like you do so people can add themes. Here’s the code to add the filter, just like for themes:

    // Create the default settings and filter it so plugins can add defaults
    $this->defaults = apply_filters('wpbar_defaults', array(
    		'show_site' => '1',
    		'show_admin' => '0',
    		'theme' => $themekeys[0],
    		'hide' => array()
    		)
    	);

    And here’s an example of how simple it would be to use the filter for controlling defaults:

    function gv_add_wpbar_defaults($defaults) {
    		$pages_to_hide = array (
    			'upload.php' => array('0' => 1),
    			'tools.php' => array('0' => 1)
    		);
    		$defaults['hide'] = $pages_to_hide;
    		return $defaults;
    }
    add_filter( 'wpbar_defaults', 'gv_add_wpbar_defaults' );

    IMHO this is the best way forward for your plugin. Keeps it light while also making the functionality fairly simple for those who really need it.

    It’s a lot to ask but if you dont’ want to include this could you possibly drop me an email so I can figure something else out? I’m sure I can control the defaults in a hackier way by hooking into get/save options but if I can depend on this going into the next version of the plugin it would save me and eveyrone else a lot of time :)

  9. Viper007Bond says:

    zonebattler on February 8th, 2009 at 11:48 PM wrote:

    Actually, it wasn’t. But never mind, the solution I found works fine! Thank you nevertheless for your quick support.

    Works fine for me. Opera must be being horrible once again. ;) I’ll fiddle with how I do the indenting in the next version.

    Jeremy Clarke on February 9th, 2009 at 10:25 AM wrote:

    So I think you should just add a filter on the $this->defaults array like you do so people can add themes.

    I was thinking I did have a filter. I’ll double check and add one if not. :)

  10. Gernot Riebold says:

    Hello,

    first of all – thanks for this work.

    My suggestion is to make the admin bar only availabe for admins. I think the best ist to configure this with a CheckBox.

    Thanks and regards
    Gernot
    Germany

  11. Viper007Bond says:

    Gernot Riebold on March 15th, 2009 at 2:27 PM wrote:

    My suggestion is to make the admin bar only availabe for admins. I think the best ist to configure this with a CheckBox.

    A valid suggestion, but for now it’s an easy edit. On line 49 of the plugin:

    if ( !current_user_can('read') ) return;

    Change it to:

    if ( !current_user_can('manage_options') ) return;

  12. jeremyclarke says:

    I think its a pretty useful idea, though rather than making it a checkbox for ‘show only to admin’ it would be cool if it was a pulldown with several different capabilities and you keyed it on that. Like
    “only show admin bar to users who can [read | edit_posts | publish_posts | manage_options]”

    That way people could hide it from just subscribers but not authors (and obviously it should be keyed to a capability like manage_options rather than a role, because roles are always optional/user defined)

    I bet you could also use the $this->defaults filter to just remove all pages from any user that isn’t an admin, but that’s not really a full solution (cause they could add it themselves after).

  13. Viper007Bond says:

    Yeah, if/when I implement it, it’d be that way. No sense in limited it to just one capability. :)

  14. mercime says:

    Thank you for submitting WPMU enhancement to trac http://trac.mu.wordpress.org/ticket/883 I was dismayed when your admin bar which worked very well across all blogs for all users in previous WPMU got limited to site admin only when it was incorporated in WPMU core in 2.7
    Peace.

  15. Viper007Bond says:

    mercime on March 19th, 2009 at 3:09 AM wrote:

    I was dismayed when your admin bar which worked very well across all blogs for all users in previous WPMU got limited to site admin only when it was incorporated in WPMU core in 2.7

    My plugin and the version you find in WPMU have gone their seperate ways. My plugin only shows up on WPMU blogs which you have access to. Donncha however is working on making it work more like WordPress.com.

  16. I love your plugin sh@#. AWESOME STUFF. WP Admin Bar concern. I use a plugin named WP125 that manages 125×125 ads. The navigation works fine in the side nav on WP admin pages. It also shows up and works fine in your plugin except for the “Manage” link. Some how it gets fouled up. WP125 uses a strange link to get to the “Manage” portion of it’s plugin: /wp-admin?page=wp125/wp125.php (the ‘/’ may be causing the issue). Not a huge concern as I have another link to get to the ‘Manage’ page via the admin but wanted to run it by you to see if there was a quick fix. The other links use a more traditional link: /wp-admin?page=wp125_settings. This causes no issue with your Admin Bar.

    Again love your work. You are a ‘WordPress Star’ in my book.

  17. Viper007Bond says:

    My plugin works fine with plugins that use script.php?page=plugin/plugin.php. I use a plugin or two that does that with no issues.

    If a plugin isn’t working with my plugin, then it’s a very good chance that the other plugin is at fault.

  18. [...] And now there’s even one more BIG addition if you work in WordPress a lot. It is a plugin that adds even more navigation power. It adds a menu ribbon at the top of the page, even when you are not in the Dashboard. From within the site itself (one that you are an admin for) the management options are available. Here is a link to the WP Admin-Bar. [...]

  19. Great news. I am sure it is the other authors issue. Do you know of an example plugin that uses the: /wp-admin?page=wp125/wp125.php structure? (besides WP125 of course). I would like to use it as a model to fix WP125. Then I could pass the code on to the WP125 author. I checked all my plugins and none of them call the /wp-admin?page= with a slash in the value. Any help would be appreciated.

    Again love your plugins.

  20. Viper007Bond says:

    Kerry Webster on March 26th, 2009 at 5:30 PM wrote:

    I would like to use it as a model to fix WP125.

    Just switch from using the old method (filename) to the preferred method (stub). Replace “__FILE__” with “somestub”.

    add_options_page('Page Title', 'Menu Title', 'capability', 'stubhere', 'function_name');

  21. TwisterMc says:

    I want to control what other users see. As an example, I don’t want any users except the admin to see comments or tools. Is there a way to control that?

  22. Viper007Bond says:

    TwisterMc on March 31st, 2009 at 6:10 PM wrote:

    I want to control what other users see. As an example, I don’t want any users except the admin to see comments or tools. Is there a way to control that?

    It goes off normal permissions. Only users who can see the “Tools” menu in the admin area can see it in the admin bar, i.e. admins only.

  23. jeremyclarke says:

    Viper007Bond on March 31st, 2009 at 10:10 PM wrote:

    It goes off normal permissions. Only users who can see the “Tools” menu in the admin area can see it in the admin bar, i.e. admins only.

    I’ve found that the tools menu especially can be really annoying, because if even one of your plugins has an author-accessible menu item under tools (including anything previously under Manage that hasn’t been recoded) all users end up seeing the tools menu. The ‘options’ menu also shows up with only one option ‘admin bar’…

    This is the main reason I asked for that patch to allow filtering of the $defaults array, so I could hide the boring ones by default so that the menu isn’t overloaded with stuff (my site is thinner than the default admin bar, meaning the extra menu items bust down into my layout).

    TwisterMc: Check out my earlier comment about filtering the defaults if you want to hide certain sections by default. Your users will still be able to edit their options to show the menu but they will be off by default. Another avenue to investigate would be installing the Role Manager plugin and trying to limit visibility that way. Just create a dummy author account and log in as it to see how things work.

    Viper007: Any chance that the admin bar options could be moved into the users/profile menu instead of options? Where it is now seems to me to indicate that it is a global option that would affect all users, rather than a personal setting (like visual editor, which is under profile). It would mean that pretty much all non-admins would have one less menu item all the time.

  24. Viper007Bond says:

    jeremyclarke on April 1st, 2009 at 7:51 AM wrote:

    I’ve found that the tools menu especially can be really annoying, because…

    I can’t control other plugins and where they put their menus. ;)

    jeremyclarke on April 1st, 2009 at 7:51 AM wrote:

    This is the main reason I asked for that patch to allow filtering of the $defaults array

    Yes, I need to do this. However you can also just use the wpabar_menuitems filter to completely remove menu rather than just making it hidden by default.

    TwisterMc: Check out my earlier comment about filtering the defaults if you want to hide certain sections by default. Your users will still be able to edit their options to show the menu but they will be off by default. Another avenue to investigate would be installing the Role Manager plugin and trying to limit visibility that way. Just create a dummy author account and log in as it to see how things work.

    jeremyclarke on April 1st, 2009 at 7:51 AM wrote:

    Any chance that the admin bar options could be moved into the users/profile menu instead of options? Where it is now seems to me to indicate that it is a global option that would affect all users, rather than a personal setting (like visual editor, which is under profile). It would mean that pretty much all non-admins would have one less menu item all the time.

    That is a very good idea.

  25. Casperse says:

    The new 2.7.2 + Nextgen have a problem in the admin bar…

    If you go to Gallery–> Overview — Dosent work…
    But if you go to the “normal” admin control the “Overview” works.
    This is a minor thing but maybee you could fix it in the new release
    Thanks for a wounderfull Plugin.!!!!

  26. Mark Barnes says:

    I can confirm the bug reported by Casperse. I have exactly the same issue with my SermonBrowser plugin. It seems that plugins that create their own menu page (not just a submenu) cause the bug, which gives the wrong URL for the first submenu item.

  27. Joe Pea says:

    Important suggestion!

    You should enable for admin to customize what other user types have in the bar.

    Just like all the settings in the screenshot (where it says “everything here applies to your account only.”) but instead should be editable for each user type.

    What do you think? Thanks! -Joe

  28. hella says:

    Hi,
    this is a very nice plugin, but i have a question…
    how can I add the menue into a widget or a other place of my website.
    I want to get the plugin so that it shows on a other place like the place from the widgets.
    I need a code, to include the plugin into other places…

    thanks for the plugin and your help… sorry for my bad english… german ;)
    have a nice day
    hella

  29. Brian says:

    Is it possible to still show the list of blogs available to the user from a drop down menu? The new “My Blogs” page is now showing up in the dropdown ever since upgrading to WordPress MU 2.7.1. I would like to show all of the available blogs for that user instead.

    Thanks!

  30. jeremyclarke says:

    @Brian As mentioned above the version of admin bar present in WPMU isn’t mainted by Viper, it was ported into the actual MU codebase and thus is under the control of Donncha and the other core MU developpers.

    WPMU Forums, WPMU Trac Bug Trcker.

  31. Brian says:

    @jeremyclarke My apologies. According to http://ocaoimh.ie/2009/04/21/wordpress-mu-271/ I had seen that with 2.7.1 it had once again been taken out of the core WPMU and once again referred to Viper. I guess I’ll wait for more updates over there. Thanks!

  32. jeremyclarke says:

    Well gee, don’t I look silly. Sorry about that, didn’t realize Donncha removed it, crazy that it only lasted 0.1 versions!

  33. Viper007Bond says:

    I haven’t ported over any of the changes made by the WPMU guys.

    As for WPMU-specific features, I honestly don’t have the motivation, time, or WPMU experience to do it. I happily accept patches though! :)

  34. Mark Barnes says:

    Can I make a request to make the plugin compatible with the Gengo plugin? Gengo is a multilingual plugin that changes the WP language on demand. It obviously needs to hook in as early as possible, so hooks into plugins_loaded. Unfortunately it breaks if other plugins call load_plugin_textdomain before Gengo has loaded, and this plugin therefore breaks it. Could you move your call to load_plugin_textdomain to the init action? You obviously don’t need to output any text until after init. Thanks.

  35. Viper007Bond says:

    Mark Barnes on April 30th, 2009 at 6:23 AM wrote:

    Unfortunately it breaks if other plugins call load_plugin_textdomain before Gengo has loaded,

    If it’s so important for Gengo to hook in as early as possible, then it really shouldn’t be using the default 10 priority, but meh, whatever.

    v3.1.5 of my plugin has an increased priority (15).

  36. Vito Botta says:

    Hi, I have recently found and this plugin and looks indeed great. Very useful.
    However, while it works fine on a new blog I am working on, I’ve noticed that the HMTL/JavaScript used by Admin Bar is outputted twice in the HTML generated for a page. I have installed a number of other plugins, so I was wondering if this is something others have noticed with Admin Bar and whether or not this weird behaviour might depend on a conflict or something with other plugins?
    Thanks

  37. Vito Botta says:

    By the way, I am using Google Chrome on Vista x64 right now… not Safari on Mac OS :D

  38. BJ Johnson says:

    On WPMU 2.7.1, I was getting a ‘max redirect exceed limit’ error when trying to move between backends using the Dashboard Menu dropdown. It may be something with the way that my sites are set up with Domain Mapping but changing

    “admin_url( $url )” to just “( $url )” in line 422

    did the trick. Now all URLs in the bar are relative with no looping. Works great!

    BTW, I thought I was going batty when the Admin Bar disappeared one day and I thought I’d screwed up somewhere. Didn’t occur to me that the update from 2.7 to 2.7.1 may have done it. Glad I found this. Thanks.

  39. andre says:

    great plugin.

    would be great to add the option to hide the “old” menu and the “wphead” cause this is “duplicate content” …

    thanks !

  40. Viper007Bond says:

    Vito Botta on May 6th, 2009 at 12:49 PM wrote:

    However, while it works fine on a new blog I am working on, I’ve noticed that the HMTL/JavaScript used by Admin Bar is outputted twice in the HTML generated for a page.

    Try the default theme. Your theme must have the hooks twice or something.

  41. Viper007Bond says:

    BJ Johnson on May 6th, 2009 at 8:20 PM wrote:

    On WPMU 2.7.1, I was getting a ‘max redirect exceed limit’ error when trying to move between backends using the Dashboard Menu dropdown.

    The version included in WPMU is a fork of my plugin. You’ll need to file bug reports on the WPMU Trac: http://trac.mu.wordpress.org/

  42. Viper007Bond says:

    andre on May 7th, 2009 at 1:29 AM wrote:

    would be great to add the option to hide the “old” menu and the “wphead” cause this is “duplicate content” …

    You can easily collapse the original WordPress menu. Just click the little arrows.

  43. Vito Botta says:

    Viper007Bond on May 7th, 2009 at 2:00 AM wrote:

    [quote comment="227522"]However, while it works fine on a new blog I am working on, I’ve noticed that the HMTL/JavaScript used by Admin Bar is outputted twice in the HTML generated for a page.

    Try the default theme. Your theme must have the hooks twice or something.[/quote]

    I am using Thesis Theme. Are there any known issues with this them?

  44. Viper007Bond says:

    Vito Botta on May 7th, 2009 at 4:20 AM wrote:

    I am using Thesis Theme. Are there any known issues with this them?

    I have no idea. I can’t be expected to know every single theme. ;)

    As I said, try the default theme.

  45. BJ Johnson says:

    Viper007Bond on May 7th, 2009 at 2:02 AM wrote:

    The version included in WPMU is a fork of my plugin. You’ll need to file bug reports on the WPMU Trac: http://trac.mu.wordpress.org/

    I know. But I’m in 2.7.1 and am using your plugin to get it back. However, today I found that in restoring the site-wide plugin activation capability, that was removed by a theme editor plugin that had its own mu.php, and reverting back to the 2.7.1 mu.php, the individual blog backend choices in the Dashboard drop-down menu no longer appear. Additionally, clicking on “My Blogs” in that menu now returns:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘blogs.php’ was given in /usr/www/users/[username]/wpmu/wp-includes/plugin.php on line 339

    And it was working so well…

  46. Mark Barnes says:

    @Viper007: I’m afraid the change you made in 3.1.5 doesn’t fix the problem with Gengo. Multi-lingual filters are necessarily complicated. If you call load_plugin_textdomain on plugins_loaded (even at a later priority), it means that locale can’t be filtered, which is necessary when multilingual plugins are used. Following a discussion on Trac, Ryan Boren said “Plugins that load their textdomain before init is complete are broken”. Could you therefore move load_plugin_textdomain to init?

    http://core.trac.wordpress.org/ticket/1175#comment:14

  47. Knolly says:

    Just upgraded to MU 2.7.1 and installed this restore the admin bar but now I get and error when selecting ‘my blogs’:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘blogs.php’ was given in /usr/www/users/[username]/wpmu/wp-includes/plugin.php on line 339

    How can I fix this please?

    I’ll have to disable for the moment but doing that defeats the object somewhat.

    Many Thanks

  48. Viper007Bond says:

    Knolly on May 15th, 2009 at 5:39 PM wrote:

    How can I fix this please?

    I believe there’s a bug in my code when it comes to WPMU. It was fixed in the WPMU fork, but I have yet to port over the change made by the WPMU developers.

  49. Knolly says:

    Can you post what you did so I can fix myself please?

    Not your fault but I had no idea 2.7.1 would screw up the admin bar so you plugin was a life saver. I’m in big trouble as most users on our blogs will be totally bemused wondering what’s happened to the navigation. They’ll click the ‘my blog’ link and get even more confused by the PHP error. If there’s a way to turn off ‘my blogs’ on the top admin bar globally for MU I’d appreciate knowing what that is, or failing that if I can have the code to fix it myself.

    I can send an email to all contributors, but if there’s another way to make the transition seamless please let me know

    many thanks

  50. Viper007Bond says:

    Knolly on May 16th, 2009 at 2:57 PM wrote:

    Can you post what you did so I can fix myself please?

    I didn’t do anything. The WPMU developers fixed the WPMU-specific bug.

    Try copying the version in /wp-includes/wordpress-admin-bar/ to mu-plugins and see if that works.

  51. Knolly says:

    No joy I’m afraid. How can I get my hands on the fix they did?

  52. Viper007Bond says:

    Knolly on May 16th, 2009 at 5:20 PM wrote:

    No joy I’m afraid. How can I get my hands on the fix they did?

    Weird, I’d think that’d work as that version contains all of the changes they made…

    http://trac.mu.wordpress.org/log/trunk/wp-includes/wordpress-admin-bar/wordpress-admin-bar.php

  53. Knolly says:

    Doesn’t even show up at all if you put it in mu-plugins I’m afraid

  54. Knolly says:

    Had to go with Ozh to get this working I’m afraid! Thanks anyway

  55. Viper007Bond says:

    Knolly on May 17th, 2009 at 3:26 PM wrote:

    Doesn’t even show up at all if you put it in mu-plugins I’m afraid

    Then you installed it wrong. I’m using my version on a client’s WPMU site right now with no problems other than “My Blogs”.

  56. Frank says:

    I’m using this plugin along with WPtouch to show a mobile version of my site. When viewed in the mobile version, the admin bar wraps onto three lines and overlaps other content.

    So far, the solution I’ve come up with is to create a ‘wpabar_show’ filter that is used by WPtouch to hide the admin bar when the site is in mobile mode.

    In WordPress Admin Bar, I’ve changed the end of InitializationPart2() to:

    // Register the hooks to display the admin bar
      if ( 1 == apply_filters( ‘wpabar_show’, $this->settings['show_site'] ) ) {

      add_action( ‘wp_head’, array(&$this, ‘OutputCSS’) );

      add_action( ‘wp_footer’, array(&$this, ‘OutputMenuBar’) );

      }

      if ( 1 == apply_filters( ‘wpabar_show’, $this->settings['show_admin'] ) ) {

      add_action( ‘admin_head’, array(&$this, ‘OutputCSS’) );

      add_action( ‘admin_footer’, array(&$this, ‘OutputMenuBar’) );

      }

    Then in WPtouch I add
    add_filter( ‘wpabar_show’, array(&$this, ‘filter_wpbar_show’) );
    to the WPtouchPlugin constructor, and define the filter_wpbar_show method as:
    function filter_wpbar_show($show) {
      if ($this->applemobile && $this->desired_view == ‘mobile’) {
      return 0;
      }
      return $show;
      }

  57. cfazendin says:

    Quick hack to make the default WordPress admin bar hide when this is enabled.

    In wordpress-admin-bar.php, starting at line 369:

    if ( is_admin() ) {
    echo ' <style type="text/css">#wpabarlist ul { margin: 5px 0 0 25px; } ' . "n";
    echo ' #adminmenu { display:none; }' . "n";
    echo ' #wpbody, div.folded #wpbody { margin-left:0px; }' . "n";
    echo ' #wpbody-content .wrap { margin-left:15px; }' . "n";
    echo ' #media-upload-header #sidemenu li { display:auto; }' . "n";
    echo ' </style>' . "n";
    }

  58. zonebattler says:

    Hi, I just upgradet my blog to the brand new WordPress version 2.8. Unfortunately, WP Admin Bar now causes an error at the bottom of each page:

    Warning: Invalid argument supplied for foreach() in /…/…/../../…./…../zonebattler/wp-admin/menu.php on line 38

    Disabling WP Admin Bar is a temporary workaround to get rid of the bold error message, but who can live without your great plugin?! ;-)

    I’d be very happy if you cold fix that issue in the forseable future… Thanks!

    Greetings from Germany,
    Ralph

  59. crashfellow says:

    Love this plugin!! think it’s fantastic. One two things i would say.

    1. 2.8 as has been mentioned breaks stuff. It has an error and also shows blank checkboxes with nothing next to them.

    As a feature, i’ve been using wordpress as a CMS and using your bar to do so. However i need to keep adjusting the CSS file within it to disable to menu on the left hand side.

    Code i use within the CSS:
    #adminmenu {
    display: none;
    }

    #wpbody {
    margin-left: 5px;
    }

    Except i need to keep updating it. Any chance that you could look at including this as part of the plugin for future releases or an option for the plugin?

  60. zonebattler says:

    Wow, the issue has been fixed immediately with v3.1.6. Thanks a lot! :-)

  61. crashfellow says:

    I’ve just gone through and created an option to hide the navigation bar through an option on the settings page.

    Any chance this could be placed into the next version of the plugin?

    Download: http://www.adamwolfs.com/wordpress-admin-bar.zip
    I simply edited the wordpress-admin-bar.php file.

  62. Viper007Bond says:

    Thanks, but since you can collapse the default WordPress menu to only be a dozen or two pixels wide (very narrow), I don’t think it’s worth doing.

  63. crashfellow says:

    True however you’ll find there are clients who will be confused by having multiple menus which is the point to making it disappear.

    It’s less about being for our benefit but more for them.

  64. Mike says:

    Hi Guys, I am sorry for bothering, but I have read almost all the comments and I did not see anyone having such problem. I have installed a brand new 2.7 version of WordPress, for tests on upgrading to 2.8 before to do so on my productive servers, and after installing your toolbar, the browser gets the following message 2-3 seconds after I log in to the administration control panel:

    Connection Interrupted

    The document contains no data.

    The network link was interrupted while negotiating a connection. Please try again.

    I have notticed that if I click on any link in the admin area, it works smoothly, but if I just log in and don’t click anywhere, it kicks me out with the upper error.

    Currently I have tried to use FF 3.11 and IE 6.0 and with both I have the same weird problem.

    Any ideas how to fix that? (forgot to mention that no other plugins are installed nor the toolbar script is modified by me). Just a fresh 2.7 + upgrade to 2.8 and toolbar (latest version)

  65. Viper007Bond says:

    I’d check your server’s error log. Probably a fatal error or something is occurring.

  66. [...] Erste – WordPress Admin Bar von Viper007Bond – stellt eine vollständig konfigurierbare Menüleiste am oberen Bildschirmrand zur [...]

  67. Peter says:

    Hi
    Fantastic Plugin! THANK YOU.

    There is a bug with ALL those Plugins that add a new Custom Top Level Menu PLUS a number of sub-menu Items under it.

    Example Plugins are listed below. The bug ALWAYS manifests in WP-Admin Bar but NEVER in the regular Admin menu.

    The bug is that the FIRST SUBMENU item under the new CUSTOM TOP LEVEL MENU always generates a Page Not Found error.

    As you know, usually, the First Submenu Item points to the same page/panel as the new custom Top Level Menu.

    These Plugins are just a few examples that will enable you to reproduce the bug. But all Plugins produce the same problem, regardless of programmer-specific quirks in the way add_menu and add_submenu are used.

    Project Manager: wordpress.org/extend/plugins/projectmanager/
    wordpress.org/extend/plugins/accessqontrol/
    wordpress.org/extend/plugins/statpress/
    Wp-Custom wordpress.org/extend/plugins/wp-custom/
    TDO MiniForms wordpress.org/extend/plugins/tdo-mini-forms/

    All those add a Top Level menu with submenu items. Click on the first sublevel item in WP Admin Bar and you will get th epage not found error. Click on the same link in th emain menu and you will go to the page/panel.

    I tried to correct your code but am not experienced enough.
    It is such a vital plugin that I thought you would want to know.
    Many thanks.

  68. Alex says:

    Great plugin!

    One thing I was wondering, would it be possible to embed the menu inside other div’s? Reason I want to know is that I would like the bar to be in the actual page part of my theme, not on the very top. I glanced at the code, but it looked like it wasn’t possible, maybe I’m wrong though, since I am not the best at HTML, though I am learning quickly.

    If I could put that below the toolbar on my site, then that would be perfect! I could probably do the rest of the customizations on my own if I just knew how to get it below my toolbar.

    Thanks for the great plugin!
    Alex

  69. EPICENTER says:

    Thank you for this great plugin!
    I tested it several weeks ago and its very useful.
    Greetings Martin

  70. Tatua?e says:

    Thank you for this great plugin! Very good :)

  71. Tatua?e says:

    Thank you for this great plugin! Very good :)

  72. fffffffff says:

    Holy crap. Just came across this plugin (realized I had two of your plugins installed- though disabled- and wanted to see what else you had)

    Trying it out now, it’s awesome. Thanks!

  73. soctimer says:

    in wordpress.com the bar are change
    this have the search and login form
    i want these options in the admin bar

  74. Viper007Bond says:

    soctimer on August 2nd, 2009 at 12:12 PM wrote:

    in wordpress.com the bar are change
    this have the search and login form
    i want these options in the admin bar

    My admin bar isn’t shown to non-logged in users, so neither really applies.

    I do need to update my plugin’s styling though to match the newer, better one though.

  75. brainsolid says:

    Cool plugin!
    Anyway, how can i do the same panel, but without all these admin’s options? I would like to do the same panel, but put some fields like username (field fro login and password) and link to tdo mini forms page on my site.

  76. Viper007Bond says:

    brainsolid on August 7th, 2009 at 9:55 AM wrote:

    Cool plugin!
    Anyway, how can i do the same panel, but without all these admin’s options? I would like to do the same panel, but put some fields like username (field fro login and password) and link to tdo mini forms page on my site.

    Sorry, I don’t provide support for modding my plugin, especially to such an advanced degree. You’re on your own. :)

  77. [...] WordPress Admin Bar: Anlat?lmas? zor de?il ama kullan?n ve görün derim. Favorilerim aras?nda. [...]

  78. soctimer says:

    i have deleted your plugin of my site
    now i using WS Tool Bar
    this have the login box
    and this are more beast of the your’s

  79. [...] Front-end-Editor Tags: wp-plugin. Skal man lave en hurtig rettelse til en post er WP-Admin rar at have. Uanset hvad man bruger WordPress til er den rar og nyttig. Vel også derfor en speciel [...]

  80. zonebattler says:

    Hi! Months ago, I already reported the issue that when viewed with the Opera Browser (v9.64), the little dropdown menu arrow of the “Plugins” item in WP Admin Bar seems to be trunctated (cut in half). I just noticed that this is NOT the case when plugin updates are announced and awaiting the user’s attention: “Plugins (1)” for instance does NOT affect the arrow to the right, only “Plugins” does. Perhaps this may be hinting to a little bug that may be fixed somehow? I can provide a screenshot if you’d care to send me a mail so that I can answer… Thanks!

  81. Viper007Bond says:

    I just need to redo the CSS on this plugin. It’s on my rather long todo list. :(

  82. Ted says:

    I’m loving this awesome plugin, Thanks big time!

    I’d like to insert a graphic link that will display to all visitors, just a simple linked to another website. I’m not a programmer but I’m usually pretty good at copy/paste hacking, but this one has be baffled. Ideally, the link would appear in the middle, or just after the Comments link. Where can I insert the code so this will work?

    Thanks
    Ted

  83. Viper007Bond says:

    The admin bar only shows up for logged in users (i.e. not all visitors) and I don’t provide help/support for modifying my plugins. Sorry.

  84. Ted says:

    Silly me, I realized it’s only for logged in users a couple hours after posting my question, and I was confusing it with the standard wpmu toolbar. Sorry if I offended, asking about hacking your code, as that wasn’t my intention. Just trying to make things work the way I need it. But I respect your wishes and appreciate your generous contribution to the WordPress community.

    Peace! =)

  85. piratx says:

    I can only use it in admin not on the site, i deactivated all my plugins cause i thought might be a problem there but no luck… any idea?

    thanx in advance! Really nice work keep up! :)

  86. piratx says:

    It’s my theme i am using wpnow Elelements… any idea how can i make it work? :)

  87. piratx says:

    I fixed it just added the SPECIAL line :P on my footer.php :) Thanx really cool plugin used something like it on drupal :)

  88. suleiman on March 27th, 2007 at 11:10 AM wrote:

    What would I need to edit to get this plugin to load on my blog even when I’m not logged on Viper?

    EDIT: Nevermind, found it.

    Can anyone please help me?
    i really need to be shown even is someone is not log in

  89. [...] – WordPress Admin Bar installera une barre d’administration lorsque vous vous trouvez sur votre site. Seul les [...]

  90. Viper,

    Great plugin! I love it. I too, like many here, want to be able to show it even if the person is logged in or not, and give them the option to log in if they want to. Well, since WordPress 2.8, this is now possible by editing 1 line in your code and commenting out another.

    For those of you who want to have it show whether the person is logged out, just comment out line 49 (the one that says if ( !current_user_can(‘read’) ) return;) and then edit line 436.

    Old Line 436 – <a href="”>
    New Line 436 –

  91. Obviously, you can’t paste code into your comments. It does not get saved properly. :P Oh Well.

    Follow the link below for a write up on how to edit the wordpress-admin-bar.php file to show even if users are not logged in and give them a log in link if they are not, and a log out link if they are.

    http://mactimize.com/?p=259

  92. Viper007Bond says:

    You can post code in my comments by wrapping your code in [php] tags.

  93. [...] WordPress I have been getting into WordPress MU recently, and came across and awesome plugin, the WordPress Admin Bar, that I wanted to utilize for my site. However, one functionality that I wanted to add to it is the [...]

  94. Aha! That makes sense.
    Sorry if the link didn’t work for you earlier, I hadn’t finished writing up the post before I posted the link. :P

    For those of you who don’t want to go to my site, here’s the code again.

    Old Line 436 -

    <li><a href="<?php echo wp_logout_url(); ?>"><?php _e('Log Out'); ?></a></li>

    New Line 436 -

    <li><?php wp_loginout(); ?></li>
  95. Get Blogged says:

    how can i make the admin bar appear sitewide on wordpress mu ? ( make it like the one in wordpress.com when the user in not logged in – sry for my english)

  96. Viper007Bond says:


    Get Blogged:

    how can i make the admin bar appear sitewide on wordpress mu ? ( make it like the one in wordpress.com when the user in not logged in – sry for my english)

    Sorry, but that is not supported at this time. :(

  97. Viper006Bond – I want to thank you for making your plugin GPL – it’s great. With that said, I have modified and re-released your plugin to display even if the user is not logged in and to include a Log In Form if the person is not logged in.

    You can check it out and download it at that link below. I am waiting for it to be approved for WordPress.org’s plugin directory.

    http://mactimize.com/?p=263

  98. Get Blogged says:

    Great job … 10x for all this

  99. Viper007Bond says:

    Donald: Bah, I really wish you had picked a better fork name. What happens if I stop being lazy and implement that feature as well as more features that your fork doesn’t have? Then the titles will be confusing as heck. ;)

    I also haven’t said I don’t want to support the bar showing up when you’re not logged in, I’ve just been incredibly busy with work and such. I don’t think it’s a bad idea at all to have the option to make it always show up.

    What I am however not really interested in coding myself is making the admin bar show up across all blogs on a WPMU install. Your plugin will show the logged in version on a blog you own and the logged out version on a blog you don’t own (ideally it should show logged in across all WPMU blogs).

    I accept patches for my plugins — no need to fork. ;)