Version 1.1

WP Hide Dashboard version 1.1 was released on 12/19/2008 for WordPress 2.7.

Description: This plugin removes the Dashboard link and the Tools menu, and prevents access to the Dashboard for 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.

What's New:

  • 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.x.

Screenshots:

WP Hide Dashboard, Version 1.1 (2.6)
Screenshot of the upper-left portion of 2.6 admin section

WP Hide Dashboard, Version 1.1 (2.7)
Screenshot of the upper-left portion of 2.7 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.

19 Responses to Version 1.1

  1. bird says:

    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.

    • Kim says:

      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.

  2. Mert says:

    Thanks Kim, Great plugin, works fine with 2.7

  3. Rachel says:

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

  4. Couto says:

    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.

  5. Kim says:

    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?

  6. Couto says:

    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.

    • Kim says:

      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):

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

      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.

      • Couto says:

        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.

        • Kim says:

          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 '
          	<a href="'.get_bloginfo('wpurl').'/wp-admin/profile.php" rel="nofollow">'.__('Profile').'</a>
          	<a href="'.current_url('logout').'" rel="nofollow">'.__('Logout').'</a>
          ';

          with this code:

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

          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.

  7. Scott says:

    Thanks for the plugin Kim. Works great in 2.7

  8. Andrea says:

    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!

    • Kim says:

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

  9. 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

    • Kim says:

      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.

  10. George says:

    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.

    • Kim says:

      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. :)

Comments are closed.