Posted on Apr 08, 2007 - 2:22am by John P. in Wordpress
WP Admin Bar is an indispensable Wordpress plugin which displays links to the Administration Panel at the top of a blog’s page – but only for users who are logged in and have permission to view the given functions.
I find this plugin to be absolutely essential to my enjoyment of Wordpress. It allows me to easily jump back and forth between viewing the blog and various management functions on the back end. If you’ve never used it before you’re going to wonder how you got by without it all this time.
I’ve personally been using the WP Admin Bar from Matt Read since I started using Wordpress. But with the update to Wordpress 2.1 it isn’t functioning properly, Matt hasn’t updated the plugin in almost a year, and his site is currently very broken – so I decided to make the changes myself.
While I was modifying the plugin I made a number of other changes including:
If you are using my Rapid Access theme, you don’t need to do anything other than install and activate the plugin. The theme already has all of the code in it!
Q: Why did you remove the automatic STYLE insertion?
A: Because style rules should always be embedded into your site’s style sheet. There are too many reasons to list. It will only take you a minute to cut and paste them.
Q: Why did you remove support for WP1.5?
A: I don’t have a working copy to test it on, plus you can keep using Matt’s old version.
Q: Why are there different versions for 2.0.x and 2.1.x?
A: Because the WP developers made some slight changes that have to be compensated for.
1.) If you are upgrading from the old WP Admin Bar use the Plugin Manager to disable it. If you do not, there WILL be a problem.
2.) Download, unzip and upload WP Admin Bar Reloaded to your plugins directory. wp-admin-bar-reloaded.zip
3.) Activate the plugin in Wordpress.
4.) Add the following lines to the very end of your “style.css” or “style.php” file.
#wp-admin-bar {margin:0; padding:5px; background:#f9f9f9; border:1px solid #666; clear:both; text-align:center}
#wp-admin-bar ul {margin:0; padding:0}
#wp-admin-bar ul li {list-style-type:none; display:inline; margin:0 10px; padding:0}
5.) Add the following line to your “header.php” file immediately after the “<body>” tag:
<?php if(function_exists('wp_admin_bar')) wp_admin_bar(); ?>
6.) Enjoy!
If you have any problems or find a bug please drop me a comment below.
This plugin is distributed under the Nice Person license as PostcardWare. Please use it, modify it, build commercial Web sites around it, and make the Web a faster, more accessible place. Here is what you could do for me in return:
I’ll publish the really interesting ones, so include a URL!
Pages: « 1 [2] 3 4 » Show All
Yes !!! It works fine. Thanks a lot for this plugin. Keep on “plugining”
[...] WP Admin Bar Reloaded – Adds a small admin bar to the top of every page. By John Pozadzides. [...]
[...] On le télécharge ces onemansblog. [...]
Hello.
With FireFox and Windows 2000, no trouble but with IceWeasel (same as FireFox) and Linux (Debian Etch) the links aren’t on the same line but on 10 lines. I’ve made a screen shot on my blog : http://wordpress-tuto.fr/admin-bar-82
What can I Do ?
Libretto,
I’m sorry you’re experiencing that issue. I know it’s frustrating. I have no experience with IceWeasel, but I’ll look into this in a little while. At the moment I’m heading out the door to eat with my wife.
Just to be clear, you’re telling me that you did install the style into your stylesheet, and viewing your page works properly in FireFox, but not IceWeasel, correct?
Be back later,
john
Libretto (and everyone else),
First of all, I just noticed that I had an error in the CSS. I’ve corrected it above, so please either recopy it into your style sheet, or simply remove “align:center” from the very beginning of the first line.
It is possible that this invalid definition was causing the error in IceWeasel, though the software should be resilient enough to keep going.
Other than that, the style declarations are completely valid and there is nothing out of the ordinary there. Furthermore they are very specific to lists that have an id=”wp-admin-bar” which should not interfere with anything else. So, it is possible that there is just a problem with IceWeasel’s CSS rendering.
One alternative you might consider would be putting it in a sidebar widget. Check out Gloda’s posts above for more info on that.
Let me know if any of the above worked for you.
John
Thanks a lot for the support. Tonight it’s going well with iceweasel. Probably a trouble with the navigator’s cache (sorry for the very poor english). BTW a friend of mine had the same trouble and said that removing “clear:both;” in “#wp-admin-bar”.
I hope it helps
[...] WP Admin Bar Reloaded [...]
[...] Descobri um plugin que acrescenta os principais links do painel administrativo no próprio blog. Logicamente, eles só aparecem quando se está logado. Não sei se o WP Admin Bar Reloaded teria utilidade para alguém, mas de qualquer modo, aà está ele… [...]
Dear Mr.
Wonderful admin tool bar, but it can be improved. Only the first level are displayed. Could you look the code of the “admin drop down menu”. It provides access to 2nd menu level from the admin. I supposed it is not a major problem to merge the two concepts. http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/
OOoops…. Doesn’t work with WP 2.2 RC1 or 2
Darn! I haven’t even looked at 2.2 yet because I still have to upgrade to 2.1! :-)
Can you tell me what the symptoms were? Did it just fail to load completely, or did the links not work or something like that?
John
It just doesn’t show up with 2.2 final, no error messages, no nothing.
I’ve got it working perfectly on two WP2.2 installs.
[...] Admin Bar Reloaded – Just upload and activate the plugin for admin bar goodness. [...]
[...] Richiesta l’installazione del plugin Admin Bar Reloaded. Disponibile anche il Psd del logo in testata. Meglio di così… [...]
Please consider moving hosting of this plugin to the wp-plugins-db.org Database. That way it can be tracked with tools like the plugin tracker, so everyone knows whether or not they are using the most recent version.
http://www.wp-plugins-db.org/wp-plugins-tracker
[...] Visit [...]
it worked 4 WP2.2
thks
awesome; works great. Thanks!
[...] WP Admin Bar Reloaded – Sorry to toot my own horn, but I – and many other people – use this plugin more than any other. People keep telling me they don’t know how they lived without it. [...]
[...] WP Admin Bar Reloaded [...]
Hello! Great plugin! I’m using it. Thank you very much!
Nice works, thanks
[...] Admin Bar Reloaded [...]