Version 1.5

WP Hide Dashboard version 1.5 was released on 12/30/2009 for WordPress 2.9.

Description: This plugin 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. Useful if you allow your subscribers to edit their own profiles, but don't want them wandering around 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.

What's New:

  • Added code to make it easier to configure plugin if you want to change the role/capability level.
  • Added code to remove Tools menu.
  • Added code to remove Settings, Media and Comments menus for Contributors+ if needed.
  • Added code to remove WordPress upgrade nag notice (admin will still see the notice).

Screenshot:

WP Hide Dashboard, Version 1.5 (2.7/2.8/2.9)
Screenshot of the upper-left portion of 2.7/2.8/2.9 admin section

Note: Comments are closed for this version. Please update to the latest version of the plugin and post comments/questions on the page for that version.

34 Responses to Version 1.5

  1. Deb says:

    Hi Kim-- I just installed your sweet plugin and am trying to hide the Turbo link. I saw your response to this problem back in November:

    To hide the Turbo link in the header, you need to change line 53 of the plugin (version 1.4) from this:

    echo "n" . '#screen-meta { display: none; }' . "n";  to this:
    echo "n" . '#screen-meta, .turbo-nag { display: none; }' . "n";

    but I have version 1.5 and it looks like .turbo-nag is already set to display:none?? I see it loud and clear though...

    • Kim says:

      @Deb: You (as the admin) will see the Turbo link. The only people that the Turbo link is hidden from are your subscribers.

      • Deb says:

        I see it as a logged in subscriber also. Could it be another plugin that's preventing yours from working properly? I'm not using the three known conflicting plugins listed above, but I have WP-CMS Post Control and Capability Manager activated.

        • Kim says:

          @Deb: Yes, it's very possible that either one of those plugins is causing a conflict with mine. After reading about both of them, I think WP-CMS Post Control is the most likely of the two to be causing this conflict, as it has several features that are also in my plugin.

          To figure out which plugin is causing the conflict, try deactivating both plugins, one at a time, and check each time to see if the Turbo link disappears. Please let me know what you find out so I can add it to the Known Conflicts list.

          Update: I downloaded the WP-CMS Post Control plugin this evening and took a quick look at the code. The code in that plugin that hides the Screen Options and Help menu is structured so that it would override the code in my plugin, causing the Turbo link not to be hidden.

  2. Junaid says:

    Thanks for this useful plugin, it works well with the subscriber dashboard issue. However, if this is adapted for use with Contributor roles, it has somewhat limited use - because contributor users can still click into the 'Posts' menu and see the post counts and the titles of posts in the Drafts and Trash - this is probably a WordPress issue.

    If you upgrade the plugin in the near future, so that the option to hide the dashboard from higher user levels is set from within WordPress admin panel rather than editing the plugin files, will it break existing settings? I am assuming it would only be a few seconds between installing the newer version of the plugin and then changing its settings back to Contributor or whichever role that dashboard should be hidden from.

    • Kim says:

      @Junaid: Yes, the ability for contributors to still view the entire list of posts, along with the links at the top for Drafts and Trash, is default WordPress behavior. The only way to change that is to alter core files, and I do not advocate that nor will I help with that.

      With regard to the future of this plugin, when the time comes that I release a version with an admin panel where you can set the level, it will not break existing settings. Settings are stored in the database, and the current version of the plugin does not touch the database in any way - there are no "settings" to break. Users would, at that time, have to go in and set their desired level for the plugin to continue to work properly in their setup.

  3. I am using membershipsite plugin and this plugin very helpful to hide dashboard from subscriber, thanks for the plugin.

    Success for you.

  4. Jane says:

    Any reason why the profile page would be blocked for users? I have commenters who say that they sign up but can't access the profile page.

    http://dearauthor.com

  5. imad says:

    How can I edit your plugin to include contributors and authors to wordpress 2.9.1 in addition to subscribers, to hide tools and dashboard.

    Please advise...

  6. Aldrin says:

    Hide dashboard from everyone but the admin.

    this is the coding that I see in the "wp-hide-dashboard/wp-hide-dashboard.php"

    if (!current_user_can(''.$wphd_user_capability.''))

    I do not see what you have posted, as follows

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

    Could you please help me with this?

    Best reagards,
    Al

    • Kim says:

      Aldrin: You are trying to apply the Version 1.4 and below instructions to Version 1.5 of the plugin. Please read the FAQ section above for how to change Version 1.5 of the plugin.

      • Aldrin says:

        I have installed the 1.5 version. That is what I'm using at this time.

        Could you please provide me with the code to hide dashboard from everyone except the admin.

        Thank you,
        Aldrin

        • Kim says:

          Aldrin: I know you're using the 1.5 version. Unfortunately you're reading/trying to apply the instructions for version 1.4 and below.

          Read the instructions under Version 1.5 on the plugin's FAQ page on wordpress.org, specifically the Subscriber -> Editor instructions. It tells you exactly what you need to change.

          BTW, these same instructions are in the FAQ section above and the readme.txt file. There's no need for me to post them again.

          • Aldrin says:

            It still does not answer my question, you gave me this for an answer...

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

            Version 1.5

            You will need to change the capability in lines 44:

            /* Plugin config - user capability for the top level you want to hide everything from */
            $wphd_user_capability = 'edit_posts'; /* [default for subscriber level = edit_posts] */

            * Subscriber -> Contributor: Change edit_posts to upload_files
            * Subscriber -> Author: Change edit_posts to manage_categories
            * Subscriber -> Editor: Change edit_posts to manage_options

            How does this hide the dashboard from the "Editor" or "Author" or "Contributor" am I missing something, If I am I'm sorry but I just want someone that could help me giving the code to hide the dashboard from the "Editor" or "Author" or "Contributor"

            Please advice
            aldrin

          • Aldrin says:

            It worked but it got rid of the edit page button for the editor???

            Is there a work around to that?

            By the way what is the name of the dashboard tab that wordpress calls out for.

            Thanks for the plugin... it great!

            BG,
            Al

            • Kim says:

              @Aldrin: This plugin hides the Dashboard, Media, Comments, Tools and Settings menu in the left column. It also hides the Favorite Actions menu in the header. It does not touch the Posts or Pages menus at all.

              Please check the list of plugins above under Known Conflicts to see if you are using one of those. There's also a conflict with the WP-CMS Post Control plugin. The link disappearing has to be related to a plugin conflict between mine and another one you have installed.

              I'm going to recommend that you take a look at the Admin Menu Editor plugin as an alternative to mine. It will allow you better control of which role sees what admin menu links.

  7. Harshad says:

    A way to hide links from subscriber & contributors on the edit posts page.
    http://wordpress.org/support/topic/370426

    Can Hide Dashboard do this? Is there another plugin for this?

    Thanks
    Harshad

    • Kim says:

      @Harshad: No, my plugin can't do that. Subscribers, by default, cannot do anything but read your blog, so they do not see the post links anyway.

      It sounds like you are trying to do something similar to what Ajay was trying to do. Read his comment and my response to it and see if any of the info there helps you accomplish what you want without editing any core files.

      If that solution does not help, the only plugin that might help you is the Admin Menu Editor plugin.

  8. Mar says:

    Hi Kim,

    Your plugin is fabulous! Almost perfectly suits my needs. I am trying to figure out how to hide the "Comments" tab from all non-admins. I'm using WP version 2.6. This is what I tried:

    /* Hide the Dashboard link (2.5+) and the Tools menu (2.7) */
    function wphd_hide_dashboard() {
    	global $menu, $current_user;
     
    	if (!current_user_can('edit_posts')) {
    		if (0 <= wphd_hide_dashboard_version(2.6)) {
    			unset($menu[0]);
                            unset($menu[25]); /* Hides the comments menu */
    		} else if (0 == wphd_hide_dashboard_version(2.7)) {
    			unset($menu[0]);
    			unset($menu[4]);
    			unset($menu[55]);
                            unset($menu[25]); /* Hides the comments menu */
    		}
    	}
    }

    Didn't work!

    Please help :) Thanks so much,
    Mar

    • Mar says:

      I almost forgot to tell you -- I also have not yet upgraded to your 1.5 version.

    • Mar says:

      Update -- I looked around this page and figured out how to hide Comments! Now I'm trying to figure out how to allow my contributors to upload media. I think that's the last edit I need.

      P.S. I upgraded to WP 2.9 and your plugin 1.5.

    • Mar says:

      Kim,

      Looks like I figured it out! Yay.

      Anyone who would like to know more about allowing contributors/ others to upload media or manage other tasks, check out this post:

      http://wordpress.org/support/topic/270389

      And it may be helpful for you to install the "Members" plugin, which allows you to manage user roles very efficiently.

      Mar

  9. stephenn says:

    great plugin. thank you for your thought and work on this.

    I have v1.5 and wondered what i could/should do to get the turbo removed from top right ... seen by subscribers ... the link goes through to:
    wp-admin/tools
    Anyway of hiding the shown link at top?...
    Anyway of redirecting (if they just type in.. mydomain.com/wp-admin/tools?

    (i read an earlier post..nov1 2009) where code could be tweeked. that was for v1.4 and i see in v1.5 it seems to be included... but it shows in my WP at present to subscribers)

    Thanks again

  10. dubcomm says:

    Awesome plugin, thanks very much for sharing!

    I'm wondering if you (or any of you other fine commenters/wp gurus) can reccomend a way to make all of my blogs approved commenters into 'subscribers', giving them a profile, etc?

    Cheers,

  11. biljana says:

    Great job! Just what I needed :)

  12. Prashant says:

    Hi I ma using your plugin. The problem is i have created a new role and have only provided options to edit/manage pages and upload files. But once logged in using this role after uploading an image and i try editing it ijust shows -1.

    I tried assigning the normal editor profile and everything worked fine. Then again in the editor profile i remove all options except options to manage the pages and upload file. It resulted in teh same issue if you try to edit an uploaded image it shows -1

  13. TechGyo says:

    Good one, Thanks for sharing. It worked perfectly for me

  14. Matt Lake says:

    Works like a dream. I am attempting to use it for a client however I have simplepress forums installed for them, this creates a main menu option. When I install and use the hide plugin it hides the top level menu for the forum as well. Is there any way this can be overridden for the simplepress forum option as it seems to ignore the wp-ecommerce one and show that.

    Matt

  15. Rod says:

    Hi,

    I just installed your plugin and can still see the dashboard link, although it links right back to the profile page. I upgraded to WordPress 3.0, so perhaps this is the issue.

    Thanks!

    • Kim says:

      @Rod: I am in the process of getting the next release ready to be uploaded to the wordpress.org plugin repository that will cover this issue. You'll get an upgrade notice in your WordPress admin that a new version of the plugin is available and you can upgrade at that time.

Comments are closed.