WP Hide Dashboard

WP Hide DashboardWP Hide Dashboard is a simple plugin that removes the Dashboard menu, the Tools menu, and the Help link on the Profile page, and prevents Dashboard access to users assigned to the Subscriber role. This is useful if you want to allow your subscribers to edit their own profiles, but don't want them wandering around the rest of your WordPress admin section.

Users belonging to any of the other WordPress roles will continue to see the Dashboard link and the Tools menu, and have access to the other sections of the WordPress admin that corresponds to their role's capabilities.

This plugin is based on the IWG Hide Dashboard plugin by Thomas Schneider, which requires having the Role Manager plugin activated in order for it to function.

This plugin relies only on core WordPress capabilities.

Latest version: 1.4
Works with: 2.5+
Compatible up to: 2.8.1-beta1
Last updated: June 26, 2009

Instructions:

  1. Download http://wordpress.org/extend/plugins/wp-hide-dashboard/ from the WordPress Extend section, and unzip it to a folder on your computer.
  2. Upload the wp-hide-dashboard folder to the wp-content/plugins/ directory.
  3. Activate the plugin through the Plugins section in WordPress.
  4. That's it! There is no configuration necessary.

Screenshots:

WP Hide Dashboard-2.6

Version 2.6

WP Hide Dashboard-2.7

Version 2.7/2.8

Frequently Asked Questions:

How do I change this to hide the dashboard and tools menu and help options from other roles besides Subscriber?

To hide these from other roles, you will need to edit the plugin in a plain text editor and make the following changes:

  • Subscriber → Contributor:
    Change !current_user_can('edit_posts') to !current_user_can('upload_files')
  • Subscriber → Author:
    Change !current_user_can('edit_posts') to !current_user_can('create_users')
  • Subscriber → Editor:
    Change !current_user_can('edit_posts') to !current_user_can('manage_options')

There are 3 instances of this code in the plugin - make sure you change all of them.

Will you be creating an admin option page to allow specifying what role we want to hide these from?

I have this on the to-do list for the plugin, and am working on it for a future release. In the meantime, you will still need to edit the plugin manually to change the role.

Support:

Please post all questions, bug reports, and feature requests below. I will respond to them as quickly as possible.

Please do not email me asking for support unless I request that you do so. The answer to your issue may benefit someone else who has the same problem, so both your question and my response need to be in the comments section below.

Donate:

If you like this plugin and want to show your appreciation, rate the plugin on wordpress.org, link back to me from your blog, or leave a comment below.

License:

This plugin is released under the MIT License.

Changelog:

  • Version 1.4:
    - Added code to remove Tools menu in 2.8.x (menu numbering changed in core).
    - Added Frequently Asked Questions and proper Changelog sections to readme.txt file.
  • Version 1.3:
    - Fixed error in WordPress version checking.
  • Version 1.2:
    - Added removal of Help link on Profile page.
  • Version 1.1:
    - Added WordPress version checking.
    - Added code for defining path to /wp-content/plugins/ if outside the WordPress directory.
    - Added removal of Tools menu and collapsible arrow from the menu area in 2.7.
  • Version 1.0:
    - Initial release.

94 Responses to "WP Hide Dashboard"

  1. hi. Thanks for plugin

    perfect.

    Regards

  2. Good plugin, but I did have to make a minor tweak to get it working. I'm very new to Wordpress (using version 2.6.5), so it's entirely possible that I did something wrong. In any case, here is the change I made. Maybe it will benefit someone else...

    I replaced this line:

    if ($current_user->wp_capabilities['subscriber'] == 1) {

    With this one:

    if (!current_user_can('level_1')) {

    Before making that change, the redirect wasn't happening at all for "subscriber" users. It appears the $current_user->wp_capabilities array is either missing or empty in my setup, but the "current_user_can" function works fine.

  3. Michael: I would encourage you to try and help me troubleshoot why the plugin isn't working for you using the existing plugin code.

    Have you tried creating a dummy account, assigning it to the Subscriber role, and logging in to that account to verify what happens when the plugin is activated?

    While your change does work, levels are deprecated in WordPress, but are still in the core to maintain backward compatibility with older plugins. All new core capabilities are based on roles, not levels, and plugin authors are encouraged to develop plugins using Roles and Capabilities rather than levels.

    wp_capabilities is part of the wp_usermeta database table, and is there by default when you install WordPress, so you should have that. You need to check that table via phpMyAdmin, click "Browse" and sort the results by the meta_key column, and see how many rows you have for wp_capabilities where the role is "subscriber" (meta_key: wp_capabilities/meta_value: a:1:{s:10:"subscriber";b:1;}). Let me know what you find out please.

  4. Hi Kim,
    I'd be happy to help. I did create a dummy account, but when I log in with it, I still get taken directly to the dashboard. This is the same thing that happens without the plugin.

    I see 3 rows for wp_capabilities: 2 with 'a:1:{s:13:"administrator";b:1;}' and 1 with 'a:1:{s:10:"subscriber";b:1;}'. This is correct, as I created 2 admins and 1 dummy account. The user_id of the "subscriber" capability does correspond with the dummy account in the wp_users table.

    Let me know if there's any other information I can gather for you.

  5. FYI... I just installed the new Wordpress 2.7, and I still have to use my little hack to make the plugin work properly. The good news is that with the hack, it IS working with WP 2.7 :)

  6. Michael:

    1. Is this a fresh WP 2.7 install?

    2. What other plugins are you running with this WordPress install? I'm wondering if there isn't a plugin that is conflicting with mine.

  7. Hey. This is great. Smart people like you make Wordpress the best option... I want to learn how to make plugins soon....

    There's one thing more I'd love to have added to this plugin — hide the "HELP" button for subscribers, because my subscribers aren't web people and they get very confused by the "help" from the HELP button...

    I can't EVER understand why the Wordpress people (the folks who build the stuff) don't get that. They still think that everyone's Wordpress blog is a blog about blogging. When are they going to figure out that that's not the case?

    Thanks again.

  8. bird: Thanks for stopping by and for your feedback on the plugin. Removing the Help menu link at the top of the Profile page for Subscribers wouldn't be hard to do. I'll add that to the list of things to be included in the next release.

  9. Thanks Kim, Great plugin, works fine with 2.7

  10. Greetings! How about directing Subscribers directly to the Blog, not stopping at the profile page?

  11. I like this a lot, but is there a way to just remove the Dashboard link fro non-admins? Not just re-direct, but remove the entire thing because I already have a profile link and having 2 is redundant.

  12. Mert: You are most welcome - glad it's working for you!

    Rachel: I'm not sure if you have a front-end login form or you are having your subscribers use the regular WordPress login page. There is a plugin called Peter's Login Redirect that will do exactly what you describe. Just set the URL for your subscribers to redirect to the blog in the plugin's settings page in the WordPress admin panel.

    Couto: I'm not sure where you are wanting to remove the Dashboard link from other than the WordPress admin panel. Could you explain a bit further?

  13. Sorry for not explaining. My website uses the Sidebar Login plugin (http://wordpress.org/extend/plugins/sidebar-login/), and while logged in as a regular user (with ur plugin enabled), they see the following links on the widget:

    Dashboard
    Profile
    Logout

    When they click on the Dashboard link, it redirects them to the Profile page, making that link redundant.

    Now i noticed that it's not much to do with your plugin, but is there anything I can do to remove that link?

    Appreciate any help.

  14. Couto: You will need to edit the Sidebar Login plugin to remove that link.

    Open sidebar-login.php in a plain text editor (like Notepad) and look for the following line (around line 29):

    <li class="page_item"><a href="'.get_bloginfo('wpurl').'/wp-admin/" rel="nofollow">'.__('Dashboard').'</a></li>

    Simply delete that line, then save the file and reupload it to your server. The Dashboard link on the front-end should now be gone.

    Let me know if you have any other questions.

  15. Well, that didn't do what I wanted exactly. I wanted it to be removed for the members, not for the admin as well. I guess it can work for now until I find another way.

    Thanks for the help.

  16. Couto: My apologies - I didn't realize that you wanted to keep the link for the admin. I've worked up the fix for the Sidebar Login plugin to do what you are wanting - hide the Dashboard link for everyone except for the admin.

    Open sidebar-login.php in a plain text editor (like Notepad) and replace the following code (lines 28-31):

    echo '<ul class="pagenav">
    	<li class="page_item"><a href="'.get_bloginfo('wpurl').'/wp-admin/profile.php" rel="nofollow">'.__('Profile').'</a></li>
    	<li class="page_item"><a href="'.current_url('logout').'" rel="nofollow">'.__('Logout').'</a></li>
    </ul>';

    with this code:

    echo '<ul class="pagenav">';
    if (current_user_can('manage_options')) {
    	echo '<li class="page_item"><a href="'.get_bloginfo('wpurl').'/wp-admin/" rel="nofollow">'.__('Dashboard').'</a></li>';
    }
    echo '<li class="page_item"><a href="'.get_bloginfo('wpurl').'/wp-admin/profile.php" rel="nofollow">'.__('Profile').'</a></li>
    	<li class="page_item"><a href="'.current_url('logout').'" rel="nofollow">'.__('Logout').'</a></li>
    </ul>';

    What I've done is add code based on capabilities - if the current user can manage options (admin only), then show them the Dashboard link. Anyone below the admin level will not see the Dashboard link on the front-end.

    Let me know if this works properly for you. I've tested it on my 2.7 test install, and it works for me.

  17. That did it! Thank you very much! I really appreciate it :)

  18. You're most welcome - glad it's working out for you! :)

  19. Thanks for the plugin Kim. Works great in 2.7

  20. What a great plugin! This is precisely what I was looking for, as I wanted to keep subscribers on the front-end of our news site where all of the content is located. Using this plugin along with the sidebar login panel achieves that goal perfectly.

    This plugin worked flawlessly for us 'out of the box' on our Wordpress 2.7 installation. No effort required. Finally, something I didn't have to code! ^_^

    Thanks!

  21. Scott and Andrea: Glad that the plugin is working well for both of you. Thanks for stopping by and letting me know!

  22. I am working on creating a membership section to my WordPress site. This plugin was exactly what I was looking for! Thank you :-)

    You said that with IWG Hide Dashboard you had to have the Role Manager plugin installed. I need a few of that plugins functions so this there any conflicts if I install it too?

    Blessings,
    Wendy

  23. Wendy: I haven't tested how my plugin interacts with the Role Manager plugin, so am not sure if there will be a conflict or not. You might test it out and let me know what happens.

  24. I really like your plugin. I am also trying to hide the "Help" drop down menu in the upper right corner for my subscribers. When you click on it, it drops down and they can choose two links; Documentation & Support Forums. I don't want them to be able to go there. I have searched high and low and can't find where this code is. Any help would be appreciated.

  25. George: You are the second person to ask about hiding the Help menu from Subscribers. I've done a bit of work on the plugin to add this feature, and should have it ready to upload to the wordpress.org plugin repository either later tonight or tomorrow morning. You'll be notified on the Plugins page in your WordPress admin panel once I do release the new version. If you can be patient just a bit longer, you'll get your wish. :)

  26. Great plugin! Thanks!

  27. Hi, I was wondering if there was a way to modify the plugin to get rid of the whole "Personal Options" section at the top of the profile screen. Since the subscribers are not entering posts or moderating there is no reason for them to see the confusing options of "Disable the visual editor" and "Enable keyboard shortcuts" or even the admin color chooser thing. Thanks!

  28. David: I agree with you about the Personal Options section, and there was a WordPress Trac ticket created that addresses this very issue - "Dashboard > Profile" Contains options that don't apply to users with "subscriber" role.

    You can see the discussion that's already taken place below the original request. Jane Wells indicated that she feels that the color scheme options needs to stay, even for someone at the Subscriber level. I've advocated removing the other two options (Disable the visual editor and Enable keyboard shortcuts) for users at the Subscriber level. You might add your comments there so that the WordPress devs are aware of how you feel. You can log in to Trac by using your wordpress.org username and password.

  29. Kim-- thanks for the plugin! It's great. One note-- you may want to update the download link you provide in the post above-- it still links directly to your v1.1 zip, maybe just link to the WP page for your plugin, which has the link for v1.3. (http://wordpress.org/extend/plugins/wp-hide-dashboard/)

  30. btp: Thanks for the heads-up on the link! I thought I had already fixed that before, but guess I missed it. Glad you like the plugin!

  31. im trying to make a plugin that will only show items to people logged in at a certain level of access, i have 3 access levels, and havent found a plugin that only shows content based on access level so ive been trying to piece together code to make a plugin and have tried several things to determine the level of access of the currently logged in user

    i was for php help on getting either the user role access level or the user role name and then displaying content based on their level...

    i already have a plugin which displays or hides content i just need the code on how to determine user role level / or user role name to add to the plugin

    ive tried

    global $userdata;
    $zlev = 0;
    get_currentuserinfo() ;
     
    if (!current_user_can('level_1')) $zLev = $zLev + 1;
    if (!current_user_can('level_2')) $zLev = $zLev + 1;
    if (!current_user_can('level_3')) $zLev = $zLev + 1;
    if (!current_user_can('level_4')) $zLev = $zLev + 1;
    if (!current_user_can('level_5')) $zLev = $zLev + 1;
    if (!current_user_can('level_6')) $zLev = $zLev + 1;
    if (!current_user_can('level_7')) $zLev = $zLev + 1;
    if (!current_user_can('level_8')) $zLev = $zLev + 1;
    if (!current_user_can('level_9')) $zLev = $zLev + 1;
    echo $zLev;

    BUT every single time it displays the number 9 no matter what access level the account is im signed in as

    ive also tried using

    if ($current_user-&gt;wp_capabilities['subscriber'] == 1) {

    i dont remember what the outcome of that was but it didnt help... ive tried several other things too, please advise, thanks...

  32. Danny: I'm going to recommend that you take a look at a couple of plugins to see if they already do what you're trying to accomplish:

    -wpNamedUsers
    -Role Scoper

    Both allow you to easily refine permissions. wpNamedUsers goes further by allowing you to refine those permissions down to the individual user.

  33. Hello, it is possible to hide the dashboard and tools menu with users on the Contributer role with this plugin as well?

  34. Thanks for the plugin! It’s great. I need It !!!
    One note:
    I have installed WP 2.7.0 and now in the admin panel I have a little text to said me updated to the ultimate version of wordpress 2.7.1

    If I activate your plugin and entry to de admin panel with suscpritor user, I see the same text to said me updated to the ultimate version of wordpress 2.7.1

    Is possible to remove this text for the suscrpitor user in the next plugin update??

    Sorry for my bad english level !!!
    :-/

  35. Brian: Open wp-hide-dashboard.php in a plain text editor and do a search for edit_posts and replace it with upload_files, then reupload that file to your server.

    That will hide the links to the dashboard, the tools menu, and the Help menu at the top for both subscribers and contributors. You will have to remember to make that change again when a new version of the plugin is released.

  36. Top: There is already a plugin that will hide the update reminder from everyone except for the Admins. It's called Hide Update Reminder by SarahG, and you can download it from the WordPress Extend section. I use it on several sites, and it works great! :)

  37. Thanks for all Kim !!! Great Plugin!
    ;-)

  38. -wpNamedUsers would be helpfull if instead of using its own GROUPS list it used the already existing wordpress user ROLES list.

    -RoleScooper ive already tried digging through its source code but cant determine which variables are loaded that tell the current users ROLE, or how to load them.

    If someone could help me either by
    1) telling me the variable(s) that contain the current users ROLE, and how to read them

    or

    2) editing / telling me what to edit in the wpNamedUsers code to load the User ROLES list instead of the Groups list it would be much appreciated.

    ( shouldnt it just be a matter of changing whichever variable is read for GROUPS to one that loads the list of user ROLES? like UserRole$ or something?)

  39. @Kim, worked perfectly! Thank you very much!

  40. I just created a new blog site with Wordpress, upgraded to 2.7.1 and then I installed your plugin with no success.

    I have a test user setup for the Subscriber role and when I log in with that user I still see everything.

    Is anyone else having this issue with 2.7.1 or is it something I did wrong?

  41. Mario: What version of WP Hide Dashboard are you using? Also, what other plugins do you have installed/activated?

  42. Hi Kim:

    Here are my plugins with versions:

    Akismet 2.2.3
    Role Manager 2.2.3
    Simple Trackback Validation 2.1
    Sociable 3.0.2
    WP Hide Dashboard 1.3

    I have tried de-activating all plugins except the WP Hide Dashboard and I still had the same issue.

    I did have IWG Hide Dashboard 1.0.3 installed originally but removed it once I found your plugin.

  43. Awesome! Great job!! Works perfectly.

  44. Mario: I think that there is some kind of conflict between my plugin and the Role Manager plugin.

    1. Are you using the Role Manager plugin for anything other than trying to hide the dashboard (other custom roles)?

    2. When you deactivated IWG Hide Dashboard, did you remove the custom capability hide dashboard from the roles that you assigned it to and delete that capability completely?

    I do know that when you deactivate the Role Manager plugin, it doesn't remove all of the entries from the options table in the database, so there may still be old data from that plugin that is interfering. You can read another user's experience with trying to remove the Role Manager plugin in the wordpress.org forum for more details.

  45. This plugin is just what i was looking for, good work! It should really be in the core WP rather than a plugin

    What would be even better is if you could hide the new version of Wordpress notification that appears along the top. Removing all traces of WP from the subscriber page is the dream!

  46. Adrian: Glad that the plugin is working well for you.

    I listed a link to a plugin earlier in the comments that hides the update notice in the WordPress admin section from all users other than the admin: Hide Update Reminder by SarahG. I'm using it on several sites and it works fine. :)

  47. Awesome plugin! Here's a tweak I made to have *only* admins able to view the Dashboard...

    Change !current_user_can('edit_posts') to !current_user_can('edit_users')

    That way, it also hides the Dashboard from editors, which was my goal for the plugin.

  48. Thank you so much! This plugin was just what I was looking for.

    Is there a way to hide the Gears link at the top of the page? My subscribers won't have any use for Gears. As many of them aren't websavvy, I think it's just going to end up confusing them.

    cheers,

    Mary H.

  49. Zoinks: I'm glad that the plugin works for you. Please remember that you'll have to edit the plugin and make that change again when a new version is released.

    Mary: You're welcome! I have looked into removing the Gears link before, and was unable to do so.

  50. Thanks for the Hide Update plugin link, i copied it into the Dashboard plugin

  51. hi kim
    first of all great plugin. But in case, i just want to turn on the recent comments section??
    thanks
    karan

  52. Awesome plugin! Here's a tweak I made to have *only* admins able to view the Dashboard…

    Change !current_user_can('edit_posts') to !current_user_can('edit_users')

    That way, it also hides the Dashboard from editors, which was my goal for the plugin.

    it still redirects the user to the dashboard, but just hides the dashboard menu link... any way to prevent it redirecting to the dashboard page, not just to hide the link?

  53. sorry, i didn't change all 3 instances of it

  54. Pete: Yes, there are 3 instances that need to be changed - glad you found the other one!

    You and Zoinks Graphics made the same changes.

    Just keep in mind that you'll need to make those changes again once I release a new version of the plugin.

  55. From Karan:
    But in case, i just want to turn on the recent comments section??

    Why would you want to allow subscribers to see recent comments in the WordPress admin area? They should be looking at the recent comments listed somewhere on the public side of your blog.

  56. Geez......what a great plugin!!!!

    Exactly what I needed!

    Thanks a million!!!!!

  57. Hi, I have just downloaded this, but it doesn't seem to stop the subscribers getting into the back end of the site. I am running wordpress 2.7.1. The wp member site says that your plugin has been tested only up to wordpress 2.7, does this mean that it won't work on my version??

  58. Tracey: The plugin works just fine with WordPress 2.7.1. Subscribers should only be able to access the Profile page in the WP admin area once it is activated. What other plugins do you have installed/activated?

  59. "Just keep in mind that you'll need to make those changes again once I release a new version of the plugin"

    Any chance in releasing two versions of this? Another version where ONLY the admin can see the dashboard. OR have a short tutorial like Zoinks Graphics did to explain how it's done in a readme.txt file?

    or better yet, a admin page where one can click a box to activate this?

    Thanks ;)

  60. Like many here I'd like to thank you for the WP Hide Dashboard plugin

    Like others I've reset the test condition to ensure that only administrators get to see the dashboard.

    For interest, I've also been playing with a relatively new beta plugin - link below
    http://w-shadow.com/blog/2008/12/20/admin-menu-editor-for-wordpress/

    which allows one a significant degree of control over the entire administrative menu, using roles to control who does or does not have access; using this one can entirely remove the tools and user menus from all or any level of non-admin user.

    Thus, for example when using my test site primarily as a 'flat' page-based CMS, with pages as the dominant content format and posts used only for news items and no discussion/comments permitted, my top-level [no sidebar] editors menu runs [left to right]

    pages media links news profile

    But the admin menu is exactly as standard, minus the dashboard.

    This plugin does NOT conflict with your Hide Dashboard when used with WP 2.7.1.

    However, the latest instance of your Hide Dashboard is still not removing the screen options or help from the admin dashboard. I suspect I'm going to have to get busy with a text editor since I also want to remove these elements from various other pages visible to my users.

  61. This is perfect. Just what I was looking for :)
    Thanks a bunch!

  62. Sorry to say this but your plugin has stopped working on my site. I installed it rather early in the development of it and it was fine. I have added quite a few plugins since then and now the Dashboard and Tools are both showing through with a Subscriber login. Do you know of any plugins that have conflicts with your own?

    Thanks for any info you might have to share.

  63. matt: I have heard that the Flutter plugin causes a conflict with mine. Could you please provide a list of the plugins that you currently have installed (both active/inactive) and their version numbers? I'll take a look at the list and see if I can spot any that might be causing a problem.

  64. Thanks for the message Kim! Here is a list of all (only took yours out) my plugins currently running:

    Akismet (2.2.3)
    All in One SEO Pack (1.4.91)
    Breadcrumb Navigation XT (1.7)
    Contact Form 7 (1.9.5.1)
    Disable RSS (1.0)
    FAQ-tastic (1.0.9)
    Google XML Sitempas (3.1.2)
    Gravatars2 (2.7.0)
    gravatars2 wp-cron (1.1)
    hide update reminder (1.0)
    maintenance mode (4.3)
    page menu editor (1.5)
    really simple captcha (1.0)
    register plus (3.5.1)
    search unleashed (0.2.27)
    smart youtube (3.1)
    wordpress database backup (2.2.2)
    wordpress download monitor (3.0.6)
    WP-reCAPTCHA (2.9.4)
    wp-table (1.52)
    Your Members- Membership (1.4.5)

    While compiling this it occurred to me that the issue could also be affected by my file permissions as I have been having bugs in other plugins caused by this. Are there any special considerations for file permissions that I should have in mind?

    Thanks!

  65. Thanks for this plugin! I'm using Social Access Control to create different user groups, and I didn't need the Dashboard revealing comments on posts that users weren't allowed to see, so I added $unset(menu[25]) in the midst of the other removals and it all works well.

  66. First, thanks for taking the time to develop this and answer questions.

    For some reason, after activation of this plugin Subscribers are still seeing Profile menu (which is fine) as well as Settings (which only has PHP Speedy Plugin showing) and a Pods (a plugin) top level menu item.

    I guess I can add code for the specific unset menu[x] for the "Settings" and "Pods" menu, but how do I find out what the related mneu numbers are?

    Is there another way to do this?

    Thanks.

  67. Anyway to have subscribers who have already seen the profile page and/or updated it to redirect after login directly to the root index? I am designing a private access blog, so there will be a lot of subscribers who are little more than readers, and it seems a little inconvenient to have them index > login > profile > index, rather than index > login -> (autoredirect) index?

    Hints, suggestions, limitations?

  68. Hey! This looks close to what im looking for. I just need to hide dashboard, tools, and help links for those in the author roles.

    anyway? plz help... thanks!

  69. How can I edit your plugin to include contributors and authors in addition to subscribers. I want an author to be able to post and edit that post but that's it. No comments and no access to anything else in the Dashboard. Thanks.

  70. Hi. Does your plugin work with version 2.8? Also, is there an easy way to change the code to hide the dashboard from anyone who is an Editor or below?

    Thanks

  71. 2.8 yes... scroll up to see the answer to your other question

  72. I have installed this plugin and its just perfect for me.
    but there is something more i want out of this plugin ,
    1)my users should not see the comments tab in the menu.
    2)my users should not see the post submitted by other users.

  73. Hi Kim
    I wonder why my post has been removed may be because I had pasted php code with my comment if that was the reason my apologies !!
    The plugin works well for me I would really appreciate if you could help me out extending the functionality of this plug-in ....
    That my users should not see the posts of the other authors.
    I expect my users to log in, post,come back add new post or edit their own posts.That's it !
    I hope I am clear in my requirement of this plug in if I am not clear I apologize again could you please help me with this..
    Thanks in advance

  74. Hello and thanks for this great plugin. :)

    I had to change unset($menu[55]); to unset($menu[75]); to get it to hide the Tools -> Gears menu in WordPress v2.8, but it works GREAT!

  75. Hello!
    I have problems with this plugins.
    I need to hide Dashboard to level_2 or Author role
    I change the code you said to have *only* admins able to view the Dashboard. THis:

    Change !current_user_can('edit_posts') to !current_user_can('edit_users')

    I change this in three parts of the code: LINE 52, 67, 82 and upload to the server but not work in the Author role only suscriptor role .

    Why?
    Thanks for all!

  76. More information, I have the problems with WP 2.7.1

  77. It works well on my site I am using wp 2.8
    in wp admin set default role for new registrations as the author roles and see if it works

  78. not work.
    I have default role in author for wp admin but not work. When I acess wih the user have author role the dashboard is visible.

  79. Top: Sounds like a possible conflict with another plugin. Are you running any other plugins that affect/manage roles and capabilities, such as Role Manager, Role Scoper, etc? Could you list the plugins (and their version numbers) that you have installed (active and inactive)?

    Ali: You don't have to change the default role for new subscriptions for this plugin to work. If the changes are made to block roles higher than Subscriber, it will do so regardless of what the value is for that setting.

  80. Fredelig: I'm aware of that issue, and it will be fixed in the next release.

  81. Ali: I didn't remove your post - it is there, but the php code did not come through. Let me look into your request and see if I can come up with a solution for you.

  82. Erich: Yes, you can edit the plugin and make the following change to hide the dashboard from all roles (except admin) by changing

    !current_user_can('edit_posts') to !current_user_can('edit_users')

    on lines 52, 67, and 82.

  83. Pete: Thanks for helping out with your reply to Erich - I appreciate it! Am taking your earlier requests under consideration, but I do not plan on releasing a separate version of this aimed at other roles besides the Subscriber role. For now it will probably be included in the readme.txt file and perhaps an FAQ section on this page (since it gets asked alot).

  84. Cool thanks for that... would it be hard to have a very simple options page whereby there is a checkbox that alternates between the two different versions... now that would be cool(er)

  85. Hello Kim
    Thanks for Quote
    "Ali: Let me look into your request and see if I can come up with a solution for you."

    I will dance in joy like a kid if you could make the plug-in work my way that is...
    My authors should not be able to view other authors posts in the admin.
    "I expect my users to log in, post,come back, add new post or edit their own posts.That's it !"
    Thanks Again and I am waiting anxiously for it

  86. Hello Kim.
    Now my plugins are installed and active:
    -custom admin branding 1.3.4
    -register plus 3.5.1
    - and your plugins - WP Hide Dashboard 1.3

    An Inactive have now:
    - Akismet
    - Hello dolly

    I reinstall your plugins and renew the code but not work. the same problems. only works with suscribe user, auhtor user not works with the plugins

  87. Thank you again.

    Version 1.4 works perfect! :)

  88. Hi

    I can't find this code in my sidebar login to replace it with the one you said.
    was that an older version?

    echo '
    	<a href="'.get_bloginfo('wpurl').'/wp-admin/profile.php" rel="nofollow">'.__('Profile').'</a>
    	<a href="'.current_url('logout').'" rel="nofollow">'.__('Logout').'</a>
    ';
  89. Uhm the fix (Fredelig - June 23, 2009 at 3:54 pm) for hiding tools doesn't seem to work for 2.8.2
    Is there another way or a new number ?

    thanks.

    Oh and althought I know this plugin isn't meant for it: Is there a way to hide the default 'posts' and 'title' fields and just use custumfields ?

  90. @por: Have you upgraded to the latest version of the plugin released last week (1.4)? That version does work in WP 2.8 through WP 2.8.1-beta2 (there is no WP version 2.8.2). If you changed the roles that this plugin hides the Dashboard link, etc. from, you'll need to make those changes again. See the newly-added FAQ section above for the correct code to change the roles.

    As far as hiding the default posts and title fields, this plugin does not have that capability. Are you wanting to hide them on the New Post/Edit Post screens?

  91. @nigel: There is a more recent version of the Sidebar Login plugin (2.2.4). I have not worked with that version yet, but will take a look and see if I can update the information that needs to be changed, and post it here.

    Update: It looks like version 2.2.4 of the Sidebar Login plugin has an options page where you can now configure it to only show the Dashboard link (or any other links) to admin users by adding |true after the link. See example below for hiding Dashboard link:

    <a href="http://www.yourdomain.tld/wp-admin/" rel="nofollow">Dashboard</a>|true

    This would hide it from all users (Subscriber through Editor) when they are logged in.

  92. @pete: I don't have time at the moment to create the options page, but plan on working on it for a future release. Stay tuned. ;)

  93. @Top: Make sure you've updated to the latest version (1.4) and made the changes to exclude both the Subscriber and Author roles (see FAQ above). Deactivate all of the plugins, then reactivate my plugin first and test to see if it works properly. If so, then reactivate the other two plugins, one at a time, and test again after each one to see if either of them are causing a conflict. Let me know what you find out please.

  94. @Fredelig: Glad the latest release is working okay for you! :)

 

Trackbacks/Pingbacks (11)

  1. WordPress Plugin Releases for 10/21 | Weblog Tools Collection - October 21, 2008 at 2:18 pm
  2. WordPress Plugin Releases for 10/21 | Wordpress Blog NL - October 21, 2008 at 4:05 pm
  3. WordPress Plugin Releases for 10/21 | bloground.ro - Blogging resources, WordPress themes and plugins for your development - October 21, 2008 at 4:09 pm
  4. WordPress Plugin Releases for 10/21 · Softonix.com - October 21, 2008 at 9:26 pm
  5. WordPress Plugin Releases for 10/21 | BlogBroker24-7 - October 21, 2008 at 9:52 pm
  6. WordPress Plugin Releases for 10/21 | PATRON DIGITAL.COM - October 23, 2008 at 4:17 pm
  7. سیاره وردپرس فارسی » افزونه های تازه - October 24, 2008 at 8:17 am
  8. Cool WordPress Plugins Released In October | Performancing.com - November 5, 2008 at 7:41 am
  9. DaboBlog - Cibercultura | Seguridad | GNU/Linux | Redes | Mac OS X | CMS| Opinión | Por David Hernández (Dabo) - November 15, 2008 at 9:03 pm
  10. The New & Improved Way to Turn Wordpress 2.7 into a Membership Community | Cagintranet Web Design - March 29, 2009 at 9:29 pm
  11. Passare da Drupal a Wordpress - Guida alla migrazione - June 11, 2009 at 8:14 am

 

Leave a Comment