Now Listening…

PhotoLegal Podcast No. 5 – US Special (Update: Fixed Audio)” performed by PhotoLegal

Bow before me, for I am root

adminstrip.jpg

Brendan has now made this WordPress 2 compatible.



Ive made myself a useful little admin strip which I thought Id share with any interested parties. If youre logged in and are an admin it will display the little strip you see above to allow easy access to some commonly used admin pages. Take the admin strip code and either paste it, or use php to include it (which is what I do) into your template - mine is in my header file as its on every page, and its just below body >. The take the CSS and paste that into your CSS file - customise at will. That should be it.


Im not sure if anyone else had this issue, but the links within the final block about posts, comments and categories didnt work for me. Rather foolishly I just stripped the code from the admin files and never actually tested the links. I have updated the plugin and separate code to fix this.


Also, as Im once again testing Spam Karma on my site, Ive added a link to the admin page and also a number for the recently snagged spam, here is the code for that, the first block goes with the $numposts, $numcomms and $numcats code (just after it is fine) and the second block just goes wherever you want (Im not so sure this works that well really, but hey give it a go).


Like the fool I am, no sooner had I loaded Spam Karma than i though, "Hmm, Ill give Akismet a go" - so I did. Heres the code for displaying the spam count and linking to the admin page for Akismet. I just noticed theres a plugin which allows Spam Karma and Akismet to live together happily, should you wish to try that (Im giving it a go).


If anyone else has any customisations such as this which they feel would be useful shared then please post a link to your site with an explanation.


This is now a plugin, thank you to Ben.


36 Responses to Bow before me, for I am root

  1. 9497 Greg 2006-02-01 13:42:22

    Very nice, this would make a cool plugin

  2. 9498 matthew 2006-02-01 14:11:36

    If I knew how to make plugins I might have given it a try. As it is, feel free anyone to plugin-ize it and re-distribute at will.

  3. 9500 Colin D. Devroe 2006-02-01 14:16:07

    Well done. Is this the first time this has been done? I realize that wordpress.com has the top bar, but it doesn't quite have the same functionality.

    If this is indeed "a first", I'm surprised. Guess people need to start thinking out of the box about blogging again eh?

    Again, well done. And I could make it a plugin if I had the time, but alas - I do not. Look forward to someone else picking it up and running with it.

  4. 9495 ZEO 2006-02-01 15:40:15

    Nice.

    But there's probably something similar - Matt's Read WP Admin Bar 2.

  5. 9496 Matthew 2006-02-01 15:55:11

    I wasnt aware of that, do you know of any screen grabs of it in action anywhere?

  6. 9499 Greg 2006-02-01 16:01:09
  7. 9489 Matthew 2006-02-01 16:07:55

    meh. Call me a megalomaniac if you like (although I suspect thatd be the wrong word) but I prefer mine :-P But then mines not a plugin :-o

  8. 9464 Matthew 2006-02-01 16:10:56

    Btw, the one you see in my screen grab has a lovely transparent png background which I thought would be best not bundled, so if you want that look - thats how its done.

  9. 9462 Greg 2006-02-01 16:19:14

    I've already modified mine to include a lil' WP logo, link to akismet spam (including count) and a link to the support forums...

    Screenshot

    If I knew how to pulginize it, I would, but alas...

  10. 9461 Matthew 2006-02-01 16:28:21

    Looks nice.

  11. 9502 amacgenius.com » Blog Archive » Admin strip 2006-02-01 20:29:29

    [...] Got the code and idea from somefool and I really like it because it’s something I can see and you can’t :p! [...]

  12. 9503 Ben 2006-02-01 23:18:27

    There you go.

    Enjoy.

  13. 9504 Matthew 2006-02-01 23:51:15

    Wow, thank you very much Ben, Ill update this post later.

  14. 9505 Oompa 2006-02-02 00:43:21

    Very handy! I installed the plugin version right away. I love it! Now if I can only fix the problem my blog has with remembering that I'm admin...

  15. 9506 Theron Parlin 2006-02-02 03:30:39

    Wow Matt, you are my new king! What a great plugin, I'm very impressed man, nice job!

  16. 9507 MaxPower 2006-02-02 04:21:21

    Very slick. Installed and now, I too, am root!

  17. 9512 Matthew 2006-02-02 09:37:34

    Btw, the reason I have the theme switcher in there is because if youre working on a theme you can use this to switch to it and only you as admin see the theme. I find it very useful

  18. 9510 Ben 2006-02-02 11:33:25

    It's most super now! Glad I could help.

  19. 9508 Kevin 2006-02-02 13:50:26

    Very nice, thanks for the work on this.

    Any idea on how I might keep the theme switcher from showing beneath the other text in the admin strip which doubles the hight of the strip--any way to keep it all in line?

  20. 9509 Matthew 2006-02-02 14:13:42

    If you go into the themeswitcher plugin and look for li > and /li > - (without the spaces within the brackets) they appear either side of the drop down code, just remove them.

    It might take a little hunting, but not much. I couldnt seem to use CSS to stop it from doing just that very thing.

  21. 9511 Laundro 2006-02-02 18:14:31

    This is excellent. Now I can see instantly if I have pending comments!

    Thanks!

  22. 9514 Scam City version 9.0 2006-02-03 19:56:17

    More Control...

    Today, Matthew at somefoolwitha.com released a little WordPress hack that creates a nice little floating admin bar at the bottom of your pages (assuming your a logged in admin of course).

    ......

  23. 9521 computerquatsch 2006-02-06 19:43:46

    Admin Strip...

    Admin Strip ist ein nettes kleines Wordpress-Plugin, welches für den angemeldeten Admin am unteren Browserfensterrand(tm) die wichtigsten Admin-Funktionen und -Informationen einblendet. Sehr praktisch!

    ......

  24. 9531 Lee-Roy 2006-02-09 03:17:03

    I love it! It's just beautiful. Now I can get rid of the Admin link up top. Just in the early stages of getting my blog going. Wordpress makes it so fun and easy. Thank you everyone for contributing.

  25. 9543 .derek 2006-02-13 15:57:21

    awesome job with this admin bar. definitely a lot more conveniant than having to enter the dashboard and navigating from there.

  26. 9544 Joen 2006-02-15 20:04:17

    10 points for massive cleverness!

    I won't be using it myself, since I have bookmarks and favelets all over, but I think this'll be a good thing to install on client wordpress websites, since the clients I've given wordpress seem to have trouble understanding the basics of computers. Handy with this tool!

  27. 9545 UPDATE: Admin Menu when logged into WordPress at elifoner.com 2006-02-16 02:35:39

    [...] After realizing that the admin strip I just installed makes the strip visible to the entire public, I’m not so liking it any more. Tony suggested this similar admin-strip plugin - It does indeed make the strip invisible for non-admin users, and includes Theme Switcher functionality which is useful if you’re developing and testing a few themes concurrently. [...]

  28. 9568 Jonnotie 2006-02-24 23:08:50

    I will use that, forever ;)

  29. 9583 Ed 2006-03-06 21:55:12

    I want to change so that when I logout, I'm forwarded to the domain.com instead of the WP login page. I've found the logout function in the wp_logout.php and it include a redirect class - but I cannot find where this is changed! Anyone?

  30. 9586 www.jammo.net » somefoolwitha.com » Bow before me, for I am root 2006-03-08 01:22:02

    [...] this looks pretty damned cool.i really like the idea of having simple access to my admin panel, without having a second tab open in Firefox. somefoolwitha.com » Bow before me, for I am roothttp://www.somefoolwitha.com/2006/02/01/bow-before-me-for-i-am-root/Ive made myself a useful little admin strip which I thought Id share with any interested parties. If youre logged in and are an admin it will display the little strip you see above to allow easy access to some commonly used admin pages. Take the admin strip code and either paste it, or use php to include it (which is what I do) into your template - mine is in my header file as its on every page, and its just below < body >. The take the CSS and paste that into your CSS file - customise at will. That should be it. [...]

  31. 9587 jammo 2006-03-08 02:39:20

    i got this running on my offline blawg.
    i realy dig it man. good job!

    i just gotta mess with the CSS to get it to align to the bottom of all browsers. :)

  32. 9601 farlane 2006-03-20 16:05:03

    Great plugin. Simple, useful - way to go!

  33. 9848 admin strip 2 › smackfoo 2007-02-05 02:07:40

    [...] I’ve been using an admin bar plugin for some time now, which sadly hasn’t been particularly friendly under wordpress 2.1. [...]

  34. 9874 admin strip two deux at somefoolwitha.com 2007-05-22 10:13:17

    [...] admin strip [...]

  35. 9886 Admin Strip update at somefoolwitha.com 2007-08-05 12:06:29

    [...] admin strip [...]

  36. 9942 WordPress Plugins Database » Plugin Details » Admin Strip 2 2007-09-17 14:29:00

    [...] an admin strip to your WP 2.1.x blog - based on an idea by Matthew M.Admin Strip 2, is a wordpress 2.1.x (and now 2.2) plugin, based on the admin bar plugin that [...]