# WordPress Admin Bar Plugin vo.5 Monday, September 13th 2004 This plugin will add a bar at the top of your template file with links to the admin sections of WordPress. However it will only add this bar for users that are logged in and have a user level equal to, or above 1. Note: Version 2 of this plugin is now available for WordPress 1.5. For WordPress 1.2 use this version. Installation To install the script just unpack the archive (link below) and upload the file admin-bar.php to the plugins folder. Then activate the plugin in the admin area. Then add the following code JUST AFTER THE <body> tag in your template (index.php): <?php admin_bar(); ?> That's it, easy isn't? Damn, WordPress is good. Actually, that's not quite it. If you have removed the wp_head(); function from the <head> of your XHTML, then read read the following Style Sheet section, if not skip the Style Sheet section. Style Sheet To get the admin bar to display properly, I have added some CSS to the plugin. If you have removed the wp_head(); function from the <head> however, the CSS won't be added. So you will have to add it yourself. The admin bar is contained in a list, <ul> and has the id #admin. So you could write your own CSS or use, or modify, the following default CSS: #admin { z-index: 20; width: 100%; margin: 0; background: #666; border-bottom: 2px solid #fff; color: #fff; font-size: 12px; font-family: verdana, sans-serif; text-align: center; } #admin li { display: inline; padding: 5px; } #admin li a { color: #eee; text-decoration: none; letter-spacing: 1px; } #admin li a:hover { color: #bbb; text-decoration: none; } And after adding that CSS your done and ready to use the plugin. Have fun. Features The following is a list of links shown for the different user levels. level 10: Write, Edit, Links, Users, Profile, Options and Admin Area level 5: Write, Edit, Links, Users, Profile and Admin Area level 4: Write, Edit, Users, Profile and Admin Area level 1: Write, Edit, Profile and Admin Area When you are view a single post the "Edit" link will appear as "Edit This Post" and take you to the edit section for that post. "Admin Area" is just a link to the default section, Write. Future Plans I'm thinking that I will add a link to the Categories admin, and when your are viewing posts in a category, link to the edit category. I'm also thinking of adding a notice for when new comments have been made. If you have any ideas for the admin bar please leave a comment below. Thanks. Download and License See the box below for download and license information.