Posted on Apr 08, 2007 - 2:22am by John P. in Wordpress
NOTE: This plugin has been abandonded in favor of Viper’s better WordPress Admin Bar. Go get it!!!
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!
By the way, I LOVE comments! Please feel free to leave one below!
Pages: « 1 2 [3] 4 » Show All
[...] “WP Admin Bar Reloaded” for Wordpress: onemansblog.com/2007/04/08/wordpress-plugin-wp-admin-bar-reloaded/ [...]
[...] Richiesta l’installazione del plugin Admin Bar Reloaded. Disponibile anche il Psd del logo in testata. Meglio di così… [...]
[...] 1) Akismet 2.0.2 2) All in One SEO Pack 1.2.8.1 3) Auto-hyperlink URLs 2.01 4) Auto Social Poster 3.0 5) Bad Behavior 2.0.10 6) Evermore 2.2 7) Exec-PHP 3.0 Feedburner Feedsmith 2.2 9) Full Text Feed 1.04 10) Google XML Sitemaps 3.0 11) InstantUpgrade 0.2 12/13/14/15) Semiologic Related Plugins 2.14 16) Share This 1.4 17) Smart Archives 1.9.1 18) Spam Karma2 – 2.3 rc4 19) Wordpress Database Backup 2.0 20) Admin Bar Reloaded for 2.1x 21) Subscribe to Comments 2.1.1 [...]
John,
this wonderful plugin solves an annoying problem for me … great not to have to constantly keep 2 views going. One question … my dashboard is vertical in the center of the screen … is this normal and/or can it be set to display horizontally (less real estate)
thanks
pete
Well, d’oh … I need to think a little more before asking noob questions … sorry for wasting bandwidth, solved it.
Fantastic tool … probably the most useful one I’ve found so far!
thanks again
pete
[...] plugin si chiama Wp Admin Bar Reloaded ed entrerà in funzione sul blog solo ad accesso effettuato dell’amministratore quindi [...]
[...] Admin Bar Reloaded [...]
oh this is an awesome plugin! I am just new to all of this WP stuff but this helps a blogspot blogger like me make the change easier!
Thank you John for this plugin. I’ll install it on my WP asap and let you know if it works for me. All the best, Teodor
Thanks. I was looking for a plugin like this.
Thanks … Great plugin
Can you make it so that the bar is shown even when you’re not logged in?
Thanks!
Steve,
The plugin could be modified to perform that way, but it seems kind of silly to me to do so. It would be mean that the links were just always there – which you can do with plain old HTML by simply editing the theme – which you’d have to do anyway to get the admin bar to show up.
John
I meant there’d be a different display, like for example a “Login” and “Create Account” link.
Steve,
I understand what you mean now! I wasn’t getting it before. :-)
It shouldn’t be too hard to add the ability to show create account or login links for users that are not logged in. I’ll try to work on this code in the next week or so. Just got back in town from my brother’s wedding, so I’m a bit behind.
If I don’t respond in a week feel free to ping me and remind me.
John
Ah! I just figured it out. In the header.php file you put…
Whoops, never mind…
Excellent plugin and WP theme. I’m goging to use both. Thanks a lot. T
[...] the part of admin’s panel right from your blog’s main page. The solution is called WP Admin Bar Reloaded. Simply install the plug-in, activate it, copy pieces of code into the theme’s .css file and [...]
John, I just uploaded and activated this plug in. I did not have to do the extra steps in the style.css and header.php. It works fine. Have I missed anything?
Steve,
The only thing you’re missing out on… is more work! :-) I’ve already got support for this plugin built into the Rapid Access theme, so you’re good to go!
John
10-4 on that John. Thanks. Great plug-in.
Just thought I would touch base again about this plug-in. The more I use your plug-in, the more I couldn’t be without it. If you are running a Wordpress Blog, you would be at a severe disadvantage without this handy little tool.
Thanks John, I just added this to our blog running 2.5 and it looks like it worked like a charm :)
[...] WP Admin Bar Reloaded- Displays links to the Administration Panel at the top of a blog’s page – but only for users [...]
After wp-admin-bar broke a while back, I thought I’d have to go without, but thanks for this fix! Working great on my site, even after upgrading to 2.5. Three cheers to you!
[...] Plugin: Here 26) WP Admin Bar Reloaded- [...]
I will install this plugin later today, seem to save a lot of flipping back and forth on admin pages…
Kim:)
John,
I am not a programmer, so I’m sure this will sound like a noob question… nevertheless…
I installed the plugin and did the update of the style sheet and header and the header did appear, but the words are off white on white and nearly impossible for me to see without really straining.
Did I do something wrong or is it in my template somewhere and I need to get one of my programmer friends to help me?
Thanks in advance.
Art,
You can actually fix this one yourself! :-)
In the line you added to your stylesheet that reads:
#wp-admin-bar {margin:0; padding:5px; background:#f9f9f9; border:1px solid #666; clear:both; text-align:center}The two funny codes that begin with the # symbol are colors. #f9f9f9 and #666 can be changed, and for simplicity you can use simple color names like black, blue, red, green, yellow, orange, gold, brown, silver, etc.
So, play around with just editing the colors until you get something usable on your theme and hopefully you’ll be all set!
John
Thanks! I definitely love the plugin. I had been highlighting the bar just to get the contrast… the low tech solution. :)
Working now. Thanks again.
You know what would make this plugin rock even harder? If the Admin Bar could float at the top as you scroll down through your blog, so you don’t have to go all the back to the top to click it.
Not that I don’t like it. I do.
Just sayin’…