I’ve just launched the first version of a new Wordpress widget, the Admin Links Widget.
This very simple widget does as the name suggests. It provides links to administrative functions from the sidebar of your Wordpress installation. The catch is, only administrators will be able to see the links so the general public won’t have their view cluttered up with links they can’t use.
Give it a try!
- Download the Plugin
- Unzip into your Wordpress plugins folder
- Activate the plugin
- Add the widget to your site!
If you have any suggestions or feedback, please feel free to post below.
Tags: Blogging · Development · Downloads · Open Source · Web 2.0 · Wordpress Plugins43 Comments
Any way to activate this without using the widget?
The only way I can think of would be to copy the necessary code out of the plugin files, and paste it directly into whichever theme you’re using. But if that’s the case, it might be just as easy to add the necessary lines to make the theme widget-compatible.
I’ve noticed one issue with this… if you are logged in as “admin” the widget does not show up on the main page.
Hmmm…. It seems to be working for me… I’ve got it set up on several different wordpress sites that I manage. Can you let me know a couple of things:
– Which version of Wordpress you’re using (it’s listed on the admin page)
– Which theme you’re using
[...] Visit [...]
Great plugin! I had an issue of the URL being incorrect…I just added my subdirectory to the address in the plugin on each line and it works fine. Thank you for the easy plugin!
Thanks for the feedback, Sara. I’ll have a look and see why it’s not pulling the blog URL correctly and update that for the next version.
I have the same problem as Sara — the subdirectory isn’t picked up. I looked at the plugin code but I’m note quite sure what to do.
Great plugin though. I really like it sitting there in the sidebar.
@Erik, @Sara: Hey you two, I finally figured out what the issue was. It wasn’t something I was able to replicate on my own blog, but found it when doing one up in the office. I published v1.0.9 today and it has a fix that should work for both of you.
Keith, thank you for the email and updated plug-in! Works like a charm.
Hi Keith!
Admin Links Widget deactivated all my plugins! It didn’t appear in the sidebar either!
Puzzling?
Regards
Norman
@Norman,
I’m not sure what the problem is but I have a couple of theories:
1. If everything in your sidebar disappeared, my guess is that none of them were widgets. The only downside to WP widgets is that when they’re turned on everything else in the sidebar disappears. If this is the case, you can create “text” widgets and add the other components in by copying/pasting them from your original sidebar code.
2. The widget itself will only show up when the widgets are turned on AND you’re logged in as an administrator. If you’re not an administrator, you won’t see the links.
Hope this helps.
[...] Plugin Homepage [...]
[...] o face şi Oceia Bar, singura diferenţă fiind butoanele din meniu, aranjate diferit, şi Links Widget”>Admin Links Widget, care pune linkurile de administrare în [...]
I am having the similar .problem as Sara did.
The Plugin works fine on one site, but when putting it on another one, mentioned above, it does not set the correct URL, leaving out the domain subdirectory of “wordpress”
The plug in seems to assume the URL rather than detecting it? I do like the working plugin.
Hi Kent,
If you use the updated plugin (v1.1) it should solve this problem for you.
http://kdmurray.net/2008/02/01/admin-links-widget-for-wordpress-110-released/
Hello Keith,
This was the latest version, but re installed it anyway and got the same result. On one site it works, and the other it does not. The 2 domains are:
http://www.learningfreely.net (not working)
and
http://www.lereninvrijheid.nl (working)
[...] Admin Links in der Sidebar. Plugin aktivieren, Widget auswählen, aussuchen welche administrativen Links in der Sidebar erscheinen sollen. Diese Links sieht nur Userlevel 10 -also der Admin. [...]
[...] Admin Links Widget 1.1.1 » Keith Murray (url) Provide links to administrative functions from the sidebar. [...]
[...] Admin Link widget [...]
Hi,
Thank you for an excellent plugin.
The only things I miss in the plugin are:
1) to automatically have the correct path to WP if it is located in a sub directory.
2) to correct xhtml, i.e. to close li-tags. E.g. change
echo ‘Dashboard‘;
to:
echo ‘Dashboard‘;
Kind regards,
Pär
the plugin works fine for me.
but one question:
is it possible to integrate a logout-link ?
Thanks and cheers
Volker
Same question as Volker… would be perfect than.
cheers ajl
This is a great plug in
[...] yazımda Admin Links Widget isimli bileşenini ve Türkçe’sini tanıtmıştım. Bu bileşen yan menüye eklemek istediğimiz [...]
[...] Admin Links Widget [...]
This plugin is ace
it,s very nice wedgit . . i’ll try it
Hi Keith,
I had some very similar functionality built into my theme. But a plug-in widget is a much better idea!
I made some updates if you want them: Added a “Log Out” link and a “New Page” link; Made the “Manage” and “Create” links into drop-down menus.
If you want the changes (for a future version) send me an email and I’ll forward them to you.
@Alex Thanks! I will probably take you up on that.
Hello Keith – Sorry, trouble: I’ve installed and activated the plugin. I placed the widget in my right sidebar and via “Edit” added a title and checked off several of the admin task checkboxes.
And, I don’t see the widget. I’ve tried logging in and out, in and out of the SAME tab, viewing in both FFox and IE8 — nothing.
I’m running WP 2.71 –
my theme is Atahualpa 3.3.2 (latest ver.)
What am I mimssing?
@Jim: I’m assuming that your other widgets are working correctly? I’m not entirely sure what the problem would be. I’ve tried the widget out on several different themes, and it’s worked properly.
To make sure, I downloaded the latest version of your theme, and the latest version of the plugin (1.3.1) and tried it on a fresh install of WP 2.7.1 and it is indeed working correctly.
All I can suggest at this point is trying to enable/disable various combinations of sidebar widgets to see if one or more don’t play nicely together.
One of my fellow Atahualpa Forum members, the awesome PaulaE, may have located the problem. The Admin Links plugin seems to assume (require) that WordPress is installed in the root. Paula and I both have WP installed in a subdirectory, but “visible” and running from the root.
Paula added the appropriate subdir “/wpdir/” for each of the plugin’s options and seems to have it running on her site.
if (is_page() && $show_editthispage) {
echo ‘Edit This Page‘;
I could have sworn I commented on this before. Regardless, this is a great idea. If you could take it one step further and allow admins to leave notes for one another somehow, that would be awesome. Is that possible?
I found out the problem with this plugin. The user-level for admin is not created in the usermeta table when installing WordPress 2.7.1 using PHP 4.x – it does get created when installing using php 5.x. Simple fix is to create another user as an administrator. You can then login as that user, change the original admin to another role and back to administrator and the user level will be created in the usermeta table and everything works.
So is the problem with 2.7.1 fixed ?
Very nice plugin, I’m using it with Wordpress 2.7 and it’s working well for me when I log in as an administrator.
I am a web designer and the site I put it on, is one that the site’s owner logs into as an Editor. Frankly I think this would be a killer plugin in you could set it up so that Editors and Authors could see the appropriate Admin Links as well — making it Administrator-Level only isn’t so good for me.
So — please add a function where Editors and Authors can see the widget’s output as well.
Thanks!
Paul three posts above is correct, there’s a problem with using user_level on PHP4. However…
User Levels (http://codex.wordpress.org/User_Levels) were replaced in WordPress 2.0 by Roles and Capabilities (http://codex.wordpress.org/Roles_and_Capabilities).
To avoid this known problem (http://core.trac.wordpress.org/ticket/8317) simple change line 15 of the plugin from “if ($user_level == 10)” to “if (current_user_can(‘manage_options’))”
Sara, if you want editors to have access too, change it to “if (current_user_can(‘edit_post’))”.
Although this would bump the minimum wordpress version up to 2 from 1.5, I imagine it’ll affect a fair number of people, as I’m just doing a bog standard blog and it affected me.
cool plugin idea! So how I understand it is like the standard meta-widget, but only visible for the webmaster of the site. Cool
Just what I have been looking for. I know this is an old post but I hope this still works with newer versions of WP.
I have installed the plugins and when i go on Edit Post or Edit Page it doesnt know what post have to edit ot the page, it says
‘You attempted to edit a page that doesn’t exist. Perhaps it was deleted?’
And when editing a post it gets me to the Posts Page..
HELP!
So does this still works with the newest wp version?
Sounds quiete cool, I will give it a try!