Register  |  Login

DeepWave

On the Internet since 1993

WordPress Hide Dashboard Plugin

Posted at 4:12 pm Fri, 5 Jan 2007 by Patrick,  Trackback URL  |  Page RSS Feed
Posted in Stuff with Tags: , ,

In the course of setting up on DeepWave, I wanted a way where subscribers and editors/writers would not need to see the Dashboard in the Admin Control Panel. I noticed a number of people had suggested various hacks and changes in code to make this happen. But as we all know, we shouldn’t hack code because it would be a pain to upgrade. So I decided to take the various methods outlined on the net and make a small that would do the trick. I therefore present the !

Please bear with me as PHP is not one of my regular programming languages, and this is my first after all, so if there are any bugs or problems, do let me know. Aside from that, enjoy!

To see this in action, just register and login to this site. Alternatively, here are some screenshots:

These are images showing the effect of the for ordinary Subscribers. On the left, is deactivated, while on the right, it is activated. Below is the same for an Editor:

Latest News (2007-11-10): I’ve just updated to version 1.1. The big change here is that I’ve added a widget for widget-enabled sidebars to use ’s Meta instead of the default Meta section. This is done because the default Meta Login will direct subscribers and admins to the Dashboard page - which we’re trying to avoid (for subscribers anyway) in the first place. So now, when people login using ’s Meta widget, it will take them back to the web page, and they can click on “My Profile” to see their own profile. I think this makes more sense for the default case. To see this sort of thing in action, try DeepWave.Net’s register and login functions above. Alternatively, if you do not have a widget enabled theme, then try using a theme like Serene which has ’s login functions built right in. Additionally, this has been tested and is working fine on WP 2.3.1..

Edit (2008-07-28): This works just fine with 2.6. But most users keep forgetting that they must use the special Meta Widget for logins. Just make sure you use a widget capable theme and use ’s own Meta widget instead of the default one.

Update (2008-08-23): Two new options have been added to . The first, is the option to block access to the Dashboard via the URL Location bar (needs PHP Output Buffering to be enabled), and the second is the option to allow authors and editors (user level 2 and above) to view the Dashboard and other admin section pages. To enable output buffering, you can edit your php.ini file and set “output_buffering = On”, or edit .htaccess and add the line “php_flag output_buffering On”

Update (2008-09-15): Well, there has been a number of changes in the code inside the in order to properly handle the situations with the two options introduced in version 1.2. If things did not seem right for you, just upload version 1.3 and give it a try. I think this time the logic should be correct, and you should see the correct results when you set the options for . Also, by popular request, the Meta Widget is now more editor/author friendly, sending you to the “Manage Posts” page instead of your profile. Administrators go to the Dashboard, and everyone else goes to their Profile page (which was the default previously).

Download Hide Dashboard Plugin 1.3

166 Responses to “WordPress Hide Dashboard Plugin”

  1. BGH Quiz Says:   

    Oh thanx, that’s one plugin I’ve really been looking for!

  2. CJ Says:   

    Thanks! Just what I needed. :)

  3. lawrence Says:   

    I installed the plugin and it appeared to be ok. I then went to my blog and I can’t see the blog anymore. I can still access the blog via the admin panel, but when I go to the homepage all I get is a blank screen.

    I uninstalled the plugin and deleted it, but its still broken.

    Help! What did your plugin do to my blog and how do I fix it?

  4. lawrence Says:   

    I forgot to mention I am on Wordpress version 2.0.6.

  5. Patrick Says:   

    Currently I am using 2.0.5, so I have not tried 2.0.6.. But that said, the plugin does not have any function that affects the normal blog operations, only the admin pages.

    Do you see any errors when trying to view your blog?

  6. lawrence Says:   

    I dont see any error messages. I only get the following

    With Firefox I get a totally blank page and no visible HTML code.

    With IE 7 I get a broweser error message saying the page is not available.

    However as I mentioned I can still access the admin with no problem.

    I have the Maintenance Mode plugin installed and when its been activated, you will its message when hitting the home page. However when its turned off and the page should show, you get nothing.

    Its weird, and frustrating.

  7. Patrick Says:   

    I’ve just setup a brand new clean WordPress 2.0.6 with Hide Dashboard 1.0 and Maintenance Mode Plugin 2.2 with no problems at all. Everything appears as it should be..

    Are you trying to use PHP5+FastCGI via a shell script? I get a blank HTML page when I do that on my web hosting account.. This issue was never really resolved, unfortunately..

  8. lawrence Says:   

    Hi Patrick

    I do have this line in my .htaccess

    AddHandler x-httpd-php5 .php

    I removed this and now the site appears to load. I guess this must be the problem.

    Although I dont understand why after removing the plugin and even deleting it, its still being affected by this code.

    Previously with the same code in my .htaccess my site worked just fine. After I installed the plugin it no longer works even when the plugin itself has been deleted.

    Any ideas?

  9. Patrick Says:   

    Unfortunately, i never got php5 to work at all.. so your guess is as good as mine.. My php+fastcgi (as recommended by my hosting provider) is as follows:

    .htaccess:
    AddType application/x-httpd-php5 .php
    Action application/x-httpd-php5 /php5.fcgi

    and php5.fcgi is:
    #!/bin/sh
    PHP_FCGI_CHILDREN=2
    export PHP_FCGI_CHILDREN
    PHP_FCGI_MAX_REQUESTS=500
    export PHP_FCGI_MAX_REQUESTS

    I never got WordPress 2.0.5 in general to work with this.. In fact phpinfo() also didn’t work for me.. :(

  10. lawrence Says:   

    Hi Patrick

    I’m a lot closer to the cause of the problem.

    What I did was to create a brand new install of WP 2.0.6. I then changed my WP database source to point to the new database and my site loaded ok.

    So it appears something got changed in the database when I installed your plugin.

    Then I discovered something else. I created a duplicate wordpress install using the old database and it never came up as was the case before, which reinforced my view that something got changed in the database and thats why removing the plugin had no effect.

    I then went through disabling all the other plugins and kept trying to load the site. It was the same until I deactivated the plugin “Related Posts 2.04″ plugin.

    Once I deactivated it the site was able to load.

    So it appears you have some conflict that occurs with this plugin.

    I haven’t had the time to examine the table yet, but when you install the “Related Posts” plugin you have to make the following changes to the wp_posts table:

    ALTER TABLE `wp_posts` ADD FULLTEXT `post_related` (
    `post_name` ,
    `post_content`
    )

    I’m guessing that whatever got messed up happened in this table.

    Thats it for now. I hope there is a fix to this because I think your plugin is very useful and it appears to be the only one out there that does this job.

    Thanks for your help.

  11. lawrence Says:   

    Update.

    I did a quick check and it appears the cardinality was changed in that table that got altered.

    I dropped that index and recreated it and the cardinality showed a different value, before it showed a zero.

    I’m not sure what that means but maybe you do.

  12. Bob Says:   

    plugin doesnt seem to work. when i login i am still directed to the dashboard.

  13. Shaun Morrison Says:   

    Hi,

    This plugin sounds great, unfortunately my users still see Dashboard when they login.

    Please advise.

    Thank you

  14. Shaun Morrison Says:   

    I found a solution here: http://www.ilfilosofo.com/blog/2006/05/24/plugin-remove-the-wordpress-dashboard/

    Unfortunately this also removes the dashboard for all users including administrators.

    Solutions?

  15. Patrick Says:   

    Hi Lawrence,

    What’s the “Related Posts” plugin? I don’t have that.. As far as I can tell, if you look at the Hide Dashboard code, the only items are a hook “add_action” and “add_filter”, which I don’t think modifies the database in anyway.. So it is really strange to hear that the DB got changed. My guess is that this problem is either extremely complex, or extremely simple :)

    I must admit, that I don’t know PHP nor WordPress that well, so maybe I am unable to answer your questions completely, so if you have any further ideas to help solve this problem, I would be most grateful :)

  16. Patrick Says:   

    Shaun, Bob, what versions of WordPress are you running? I’m using 2.0.5..

    Regarding ilfilosofo’s code, it actually is similar, the difference is that Hide Dashboard has a “if(!current_user_can(’level_10′))” check to _NOT_ hide the dashboard for Admin users (level 10 permissions and above).. But their code also uses “add_action” although on a different admin item..

  17. Patrick Says:   

    OK, I have set up a brand new WordPress 2.0.6 install (on my current web hosting), with a new database, using PHP5 (as above). Installed and Activated Hide Dashboard plugin and tested logging in with a subscriber account. Made sure that the main test page works fine as well. Logged out, and retried with Admin etc. No issues found.

    Then I deactivated, and then deleted the plugin, still no problems. Everything works fine.

    So since I am unable to reproduce the error, I’m not sure how next I can help to troubleshoot this issue.. Anyone with ideas/suggestions?

  18. Patrick Says:   

    Shaun, Bob,

    Forgot to add that Hide Dashboard only hides the Dashboard for users below Level 10 (Admin), so if you login as Admin, you _WILL_ see the Dashboard, but if you login as Editor, Subscriber, etc, then you won’t see it.. It will go straight to Profile for those users.

  19. Shaun Morrison Says:   

    I tested to see if it was a plugin conflict - it doesn’t seem to be. Also I have not changed the core code at all.

    I too am running a fresh 2.0.6 install. Hmm… don’t know what to suggest really.

  20. Shaun Morrison Says:   

    Oh, and I have logged in and out as different levels of users with no luck.

  21. Patrick Says:   

    Hmm, Very strange indeed.. Well, all I can say is that the DeepWave (and Eileen’s Blog) are both currently running 2.0.6, PHP5, along with a whole bunch of plugins (see the “About DeepWave”) and do not seem to be having any problems..

    I admit, I am stumped. :( Anyone out there have any ideas how to debug this issue further?

  22. AzeriFire Says:   

    Thx a lot! I need it really!

  23. AzeriFire Says:   

    Not works! :(

  24. Patrick Says:   

    AveriFire, any information as to your setup what you mean as not working? What version of WordPress are you running and are there any other plugins that may conflict with this?

  25. Jonathan Says:   

    Hi -

    Running the latest version of WordPress here. As a subscriber logging in, the plugin works fine, but for Authors/Contributors/Editors, the Dashboard frustratingly appears after login, though the button is not present on the navigation bar. So for users who are not admins and not subscribers, the dashboard will appear when the user first logs in (that’s where they’re redirected to) but the Dashboard is not visible in the navigation. if you could figure out a fix so the login redirects to the write tab for contributors/authors/editors, this plugin would work quite excellently for us :)

  26. toul Says:   

    hi…it doesn’t work for me too!!!!
    i running wp2.06 and a mamp-server.
    cu

  27. Nyomi Says:   

    I installed the plugin with WP 2.0.6 and get the same behavior reported by Jonathan in comment #25. Fortunately for my purposes, I don’t mind if all users except for Subscribers see the Dashboard. I ended up hacking your code somewhat so that the Dashboard and Users menu links are hidden only hidden Subscribers. I couldn’t fix the redirect issue though. Hope you can fix it, as otherwise this is a great plugin.

  28. Patrick Says:   

    Hi Jonathan, Nyomi,

    I think I’ve figured out (slightly) why your uses seem to still see the Dashboard. In my pages, I have a sidebar link to “wp_register”. Hide Dashboard currently hooks into it, and it redirects people straight to their profile. However, I also have a code hack to redirect people back to the main page after logging in, so I do not see your situation.

    I’m bogged down with real work right now, but that said, I think I understand what I have to do, so I will try to get that fixed..

    On the other hand, I am going to try to setup WP2.1 and move this site onto 2.1 and update Hide Dashboard to support it. So I hope you will bear with me..

    Thanks!

  29. Dave Says:   

    Great plugin. How do I remove or add “Category” link like “Write”? Also, how would I go about removing sublinks like “Post” under the “Write” link? This is what I really need to do. I don’t want users to be able to see the “Comments” link.

    Thanks for any help or ideas.

  30. matt Says:   

    Dave,

    Try using the plugin called Role Manager.

  31. jeroenonstenk.nl : WordPress CMS-tool Says:   

    [...] Daarnaast kan het nog handig zijn om ook het Dashboard niet te laten verschijnen in het admingedeelte van WordPress. Deze verwijder je dan in WP 2.1 het eenvoudigst met Hide Dashboard van Patrick Khoo. Wanneer je bepaalde delen van het Dashboard verwijdert wilt hebben, gebruik dan Dashboard Editor van Aaron Dowden. [...]

  32. john Says:   

    why do i have to register on your site simply to download your plug-in? others simply let you download plug-ins without the hassle.

  33. WP???????Hide Dashboard Says:   

    [...] ???????DeepWave WordPress Hide Dashboard Plugin ??? [...]

  34. johanhorak Says:   

    Hi Patrick

    It looks like a great plugin.

    I am using 2.1.2 do you know if it works on it?

    Regards

    Johan

  35. johanhorak Says:   

    Hi Patrick

    Thanks.

    It works on 2.1.2

    Is it possible to redirect them to the index page instead of the profile page?

    Regards

  36. Johan Says:   

    Hi

    Not to worry. I got hold of this plugin and it’s doing a great job:

    http://www.thedailyblitz.org/weasels-login-redirect-text-replacement-plugin

    Regards

    Johan

  37. robertc Says:   

    Your plugin is a work of art. Thanks.

    However (I’m running wp 2.1.3) a little issue maybe I’m doing something wrong, I find that when I go into Author level with Hide Dashboard it works well and hides both Dashboard and Profile.

    I’m using login re-direct plugin to go directly to Write Post tab/screen. However, when I click on the View Site hyperlink my site comes up and in the upper right corner I now see Dashboard, Write, Manage, Comments, Profile and Logout.

    Is there anyway to hide the Dashboard and Profile tab from this area as well?

    testing example http://accmachine.com/test
    testing author username = Test123
    testing password = bluefly

    Am I doing something incorrect?

    Thank you in advance.

    Regards,

    Robert

  38. Angelface Says:   

    Very new here. I’m using wordpress mu 1.2.1. Will this plugin work for it?

  39. Angelface Says:   

    O, and where do I install it?

  40. REUS Says:   

    Hi, thanks for this plugin, but dont work in my wordpress, because when i log in with non admin user, i see the Dashboard, dont redirect to PROFILE, but the link DASHBOARD in the menu, dont see.

    Please help me.

  41. WP Plugins DB » Blog Archive » Hide Dashboard Says:   

    [...] Visit [...]

  42. Peter Says:   

    @Robert

    thanks for your “error” — it made me aware of the semiologic “admin menu” plugin (which I suspect you have activated): it does exactly what you describe: pull the admin menu links to the top of the front-end ;-)

    http://www.semiologic.com/software/admin-menu/

    / Peter

  43. Joseph Says:   

    Great plugin — is there a way to edit it so that it would hide other pages in addition to the admin panel? I’d like to hide the “comments” and “manage” tabs. Any help would be appreciated.

  44. Atking Says:   

    Nice plugin but it’s half done if I may say.
    In the readme file you say :

    Well, it hides the Dashboard for all non-Administrators, but you can still get to the dashboard by URL on the Location bar :(
    In any case, this just makes it a little easier for end-users..

    This is a big issue if any suscriber can manually access to the dashboard. Even if some don’t know how to do it, typing index.php in the location bar is no big deal.

    Ilfilosofo plugin gets a pluggable error and yours is by far better. If you could make something about this access to dashboard issue, it would be perfect.

    Thx a lot for what you already did ;)

  45. Emons Spedition & Logistik » dasdas d » asdasd Says:   

    [...] klick mich [...]

  46. Dailyinvention.com Says:   

    [...] For those of you, who are like me, that might not have upgraded to the lastest version of Wordpress, You might want to consider doing so. I added DeepWave’s Hide Dashboard Plugin to to hide all my information form subscribers that might be using there subscription for spamming and information gathering purposes. It’s always safe to do a backup of your database and blog files whenever possible. I know I don’t do that enough either. For sure everything is ready now in case of an emergency. [...]

  47. Larry Says:   

    Dashboard is not hidden for authors?

  48. Hide Dashboard | ???????? Says:   

    [...] ???????DeepWave WordPress Hide Dashboard Plugin ??? [...]

  49. pftq Says:   

    Hi nice plugin. :) Works great.

    To further complete it would be to redirect from the dashboard (even if accessed from url). It’s a very easy fix to do via directly editing the index.php :P

    Wrote a step-by-step: http://www.pftq.com/blog/2007/08/03/hiding-wordpress-dashboard-completely/

    Do you think you would be able to combine this edit into your plugin? It is not a function so I’m not sure…

  50. Feral Pundit Says:   

    Thank You.
    Your plugin is fantastic! Just what I needed.

  51. dotMacHost Says:   

    Works PERFECTLY! Thanks very much.
    :)

  52. DaboBlog Como ocultar el Dashboard - Tablero en Wordpress a usuarios que no sean administradores. Says:   

    [...] Ms informacin y descarga del plugin con algn ejemplo en forma de captura de pantalla. (ENG). [...]

  53. joseph Says:   

    nice! i’ve never figured why a site user would want to get updates on wordpress plugins et al… turning it off on several sites. now.

  54. Ocultar Tablero en Wordpress a Usuarios que No Sean Administradores Says:   

    [...] Enlace: WordPress Hide Dashboard Va: daboBlog [...]

  55. Best Wordpress Plugins: Visitor Management | Double Black Design Says:   

    [...] Wouldn’t it be nice to be able to hide your website dashboard from your registered visitors. After all, you are probably the only person who should be managing your website. The Hide Dashboard plugin does just this. This plugin allows you to manage your administration dashboard visibility based on the role assigned to your registered visitors. [...]

  56. Roel Willems Says:   

    This must be the best Wordpress plugin ever! I have been looking for a way to hide the dashboard from subscribers for a long time and your plugin did it!

    Thanks for making the plugin.

  57. David M. Besonen Says:   

    i can’t get this plugin to work with WP 2.3.1-RC1.

    does anyone have this working with the WP 2.3.x series?

  58. Unhookt Says:   

    I’m running 2.3.1 and it works for me. Just log in as a subscriber, author or editor and you’ll notice the lack of a dashboard.

  59. alias Says:   

    I was thinking this would remove access period to the admin area, all this does is hide certain items, i’d rather disable admin for all non-admin users

  60. Patrick Says:   

    pftq (7:20 pm, Friday, 3 Aug 2007):

    Yes, your solution is correct. However, it requires users to edit the WP code. Although I myself (and probably a whole bunch of others here) can do so, I would rather not suggest such a thing because it would play hell for upgrades. So check out this newest version 1.1, and try the widget instead. No more manual editing of php files needed :)

  61. Ernestto Says:   

    Hi,
    I installed wordpress 2.3.1 and this plugin is for SUSCRIBER Role only, that’s right?

  62. Hide the WordPress Dashboard with the Hide Dashboard plugin! at WordPress Themes, Plugins, Blog Tips, Make Money Online >> WPthemesplugin.com Says:   

    [...] Visit & Download [...]

  63. Hide the WordPress Dashboard with the Hide Dashboard plugin! | Wp Wordpress Says:   

    [...] Visit & Download [...]

  64. Plouceur Says:   

    It took me 3 hours to find your plugin but I knew someone had the same need as me somwhere… :)
    I have not looked the code, but it works well, so great job,
    Thanks

  65. Patrick Says:   

    Thanks for the great plugin. I have another plugin called Subscribe2. It allows people to subscribe/unsubscribe to my blog content/posts by selecting certain categories to receive automated emails. Your plugin suppresses that page/tab also. Can you give me a tip as to how I can reveal the plugin subscribe page?

    Plugin page - http://subscribe2.wordpress.com/ Version 4.2 and I have Wordpress V2.3.1.

    Thank you !!

  66. Scott Lenger Says:   

    replacing dwlogin with this code will allow you to control which page receives the redirect:

    function dwlogin_redirect() {
    global $redirect_to;
    if(!current_user_can(’level_10′)) {

    $redirect_to = get_option(’siteurl’).’/wp-admin/edit.php’;
    }
    }

    Now can anyone enlighten me on how to PERMANENTLY prevent access to wp-admin/index.php (without hacks of course)?

  67. Patrick Says:   

    Scott,

    Perhaps I need some additional explanation. Exactly where does this code exist (location/filename) and what effect will this have on the plugin? Need to pick your brain a bit to get the “big picture”!

    Thanks!

  68. P Ï N K F U L L M O Ø N » Some stuffs & plugins Says:   

    [...] Wordpress Hide Dashboard plugin [...]

  69. Detox Your Body Says:   

    Cool Wordpress plugin! I’ve been looking for this.

    Julia

  70. youcant.be Says:   

    nice plugin. this saves me so much work.

  71. wallythagreat Says:   

    Thank you so much! It’s people like you that make this world a better place… Well, at least an easier place for web developers. Thanks again!!!

  72. onetechguy Says:   

    Hi Patrick,

    Thanks for Hide-Dash. I am using WP 2.5 and your plugin seems to function as advertised. I would like to extend it to also include hiding the subscriber’s “Help” and “Support” links in the dashboard header, as they simply direct subscribers to the wordpress site, not really help or support for my blog site. Seems like I just need a small snip of code, like the $Menu[??] for these, but I’m not completely certain. Any thoughts?

  73. Shekira Says:   

    I could kiss you!

  74. Yousef Says:   

    thanks alot

  75. ilg Says:   

    @onetechguy:
    It looks to me like those links that appear at the upper-right of the 2.5 dashboard are hard-coded into admin-header.php and probably not removable via plugin.

  76. Steven Says:   

    Awesome !

  77. ilg Says:   

    Adding the following to your plugin after line 41 (if(!current_user_can(’level_10′)){) redirects any non-admin user off of any /wp-admin* page to /wp-admin/profile.php. This might, however, cause issues for mid-level users (i.e. authors/editors/etc may not be able to access needed functions) and I haven’t tested it thoroughly and there might be a better way to do this. YMMV.

    if(strpos($_SERVER['REQUEST_URI'],’/wp-admin’)!==FALSE
    and strpos($_SERVER['REQUEST_URI'],’/wp-admin/profile.php’)!==0){
    wp_safe_redirect(’/wp-admin/profile.php’);
    }

  78. Pulsar Says:   

    Thanks! Just what I needed

  79. Completing the CMS With Wordpress 2 : Pressing Pixels | A Wordpress Magazine Says:   

    [...] http://www.deepwave.net/articles/hide_dashboard/ [...]

  80. Pastnieks Says:   

    Thanks! It works perfectly.

  81. Patrick Says:   

    @iLG - So far, for editors/authors, they do not really have any problems with Hide Dashboard. This is because we do not modify the normal menu lines etc at all. So if without Hide Dashboard, and as an editor/author/subscriber/etc you still cannot see certain menu functions (like moderate comments and check spam), then that is a WP security issue. Maybe the user needs to be upgraded to Admin…

    Anyhow, as of this moment, Hide Dashboard 1.1 has been tested and is working fine up to WordPress 2.6 Beta 2.

  82. ilg Says:   

    @Patrick — Hide Dashboard as you released it would have no problems for editors/authors/etc. My comment was that if one added the code I suggested, which blocks regular users from getting to the dashboard page even by direct URL, editors/authors might be affected (I only tested my modification with admin and subscriber accounts).

    I made the modification to prevent non-admin from getting to the dashboard and anything else, even if they know the URL structure of /wp-admin/, since the site on which I use Hide Dashboard has some very smart and computer-literate folk who might try to access more than they should.

  83. Martin Espericueta Says:   

    Hey ilg,

    I added your code (cut/pasted) after that line, and I get an error: “Divide by zero” ?

  84. Hide Dashboard Plugin » Wordpress Plugins Says:   

    [...] Version: 1.1 - License: GPL - Author: deepwave - Plugin Page - » Download [...]

  85. gulflee Says:   

    hi,i use this plugin in wp 2.5.1version1.1 . In “editor” the plugins work fine on removing the dashboard tab. but not redirecting the page to profile.php? can help

  86. ilg Says:   

    @Martin:

    The first thing I’d check is that you got the quote marks correct, since there shouldn’t be any division or variable reassignment going on at all in my little snippet of code…

  87. 2718.us blog - Hiding the WordPress Dashboard Says:   

    [...] to have users deposited on a page that has no relevance to them.  This is where the Hide Dashboard plugin from Patrick/DeepWave comes in.  It does a nice job of getting users to their profile page and [...]

  88. ilg Says:   

    @Martin:

    I looked again and I think it’s very likely to be the quotes, since if you copy/pasted what I posted in my comment here, the quotes were mangled by WP. I posted the snipped on my own blog, so it’d be syntax-highlighted and would copy correctly.

  89. mrbrown il "bacheca" Says:   

    [...] http://www.deepwave.net/articles/hide_dashboard/ http://www.ilfilosofo.com/blog/2006/05/24/plugin-remove-the-wordpress-dashboard/ http://wordpress.org/extend/plugins/wordpress-dashboard-editor/ http://www.italiasw.com/eliminare-i-feed-dalla-dashboard-bacheca-di-wordpress-wp-plugin/ [...]

  90. shopoto Says:   

    I’m using wordpress 2.6 and hide plugin 1.1
    but even when hide plugin is activated
    if i log with a level 0 user
    the dashboard still appear..

    any suggestion?

  91. TESTPERSON Says:   

    Patrick,

    I see you’re using WP 2.3.3. This plugin does not work in WP 2.6. It doesn’t redirect them to the profile page and the dashboard has lots of info on it that I’d rather the users didn’t see. Please fix!

  92. Rob Says:   

    I have a question:

    I have another hack which allows users to upload an avatar. How would I go about making it so the subscribers can access only their profile AND that other one? Is it possible?

  93. Mark Says:   

    Doesnt work with 2.6 :( please please help

  94. Patrick Says:   

    shopoto, testperson, mark, please make sure you use Hide Dashboard’s Meta widget in your theme instead of the default one. The WordPress default Meta forces you (it is hard coded) to go to the dashboard.

  95. Patrick Says:   

    Rob, Does the avatar page appear as a submenu of the profile page? Or is it another submenu altogether?

  96. wilef Says:   

    I tried it and it still doesn’t do what I expect. I see that logging on through the widget does redirect the user to the homepage, and clicking on the profile doesn’t show the dashboard, but if the user logs in from a different area (like in the comments section I have a link to log in), it takes them to the wp-login.php page and once logged in, shows the entire dashboard (which I don’t want them to see). Besides, I don’t want to use the widget as I don’t use widgets on my site.

    I was able to fix this problem without the use of a plugin (unfortunately that means whenever you update wordpress, you need to make sure you make these changes before overwriting your files).

    Change line 7 in menu.php (located in the wp-admin folder). - Change ‘read’ to some other level of permissions like ‘edit_pages’. This prevents readers from accessing the Dashboard page.

    Change line 411 of wp-login.php (located in root wordpress folder). - change from $redirect_to = admin_url(); to $redirect_to = admin_url(’profile.php’); This will redirect users after they login to the profile page.

    That’s it!

  97. ilg Says:   

    @wilef, mark, rob, shopoto, testperson–
    while I haven’t tested it thoroughly, nor have I looked at Patrick’s code fully enough to know for sure that it is safe and does what you want, you might try my modification to the plugin as described above or at my blog.

  98. Patrick Says:   

    ilg, I am trying to put your code in as a option in Hide Dashboard so that people can checkbox it.. But when I’m activate it on WP 2.6, I keep getting “Warning: Cannot modify header information - headers already sent by (output started at …\wp\wp-admin\admin-header.php:27) in …\wp\wp-includes\pluggable.php on line 770″

    Could this be related to the use of wp_safe_redirect() and the fact that by the time Hide Dashboard comes into play to disable the menu buttons, the headers have already been sent?

    After all, if we could redirect it at a high(er) level, we would not need to do this additional Meta widget nor would wilef need to edit WP-specific code (which is always a very big no-no).

    Any ideas?

  99. ilg Says:   

    Patrick,

    The “headers already sent” error is almost certainly from trying to redirect after some data has been sent. However, I’m not getting the error in my install of 2.6 with my modified version of the plugin. I logged in as a non-admin user, tried going to the dashboard, and was redirected to the profile page (as intended). Have you made any other changes? (Did you check for stray blank lines at the end of the plugin file?) Is there a specific set of steps I could try to reproduce the error on my install?

    Also, if you want, you can email me directly to work on this more.

  100. Mario Says:   

    Hello,

    Running WP2.5.1 installed plugin and entered as contributor, it works just halfway in the sensethat it displays the admin dashboard page as a blank with just this error message:
    “You do not have sufficient permissions to access this page.” No redirection done, therefore not useful to my wp not-savvy users…do you think I need to upgrade to 2.6 ? Could there be anything else? Thanks

  101. Mario Says:   

    I forgot to make clear the fact that if I insert a different URL (i.e. ../wp-admin/post-new.php ) it displays everything fine so the problem is JUST the redirection bit missing

  102. Derek Says:   

    Thanks for the hard work on this plug-in! I am running WP v2.6 and I am finding that non-admin users are still redirected to the Dashboard even with the plug-in activated. I have removed the “meta” widget and have added the “Dashboard-Meta” widget as indicated in the instructions but still no luck. Same happens when no widgets are activated. In any case thanks again for your efforts.

    - D

  103. Martin Says:   

    It works fine for me, many thanks !!

  104. GW Says:   

    That is just awesome! Thanks a million
    GW

  105. Freeware Software Downloads Says:   

    Hello! What’s the plug-in that you use to display that cool wordpress admin panel interface?

    Nicholas

  106. scotjam Says:   

    Works a charm with 2.6.2. Thank you!

  107. scotjam Says:   

    Ops! I spoke too soon.

    I’ve found that when I click ‘write’, ‘manage’ or ‘comments’ I’m redirected to ‘profile’. But I was under the impression that this plugin would only block access to ‘dashboard’. I could be wrong, but I think this line in dwpage_restrict_adminhead() is doing this… It checks if the url is not pofile and then jumps to profile.

    if (strpos($cur_url, ‘/wp-admin/profile.php’) === FALSE) {
    // _NOT_ Profle Page
    wp_safe_redirect(get_option(’siteurl’) . ‘/wp-admin/profile.php’);
    }

    Any ideas please?
    Cheers!

  108. Patrick Says:   

    Hi Nicholas, the cool wordpress admin interface is the default interface from WordPress 2.6. I don’t use any special plugins to modify the Admin interface. Maybe it is time for you to consider an upgrade? :)

  109. Patrick Says:   

    Hi scotjam, yeah, there is some funny logic bug in version 1.2. You can’t use both the “Force Profile Only” and “Allow Editors/Authors” options together. Furthermore, the “Allow” thing was not described properly, so I guess everyone misunderstood what it was supposed to do.

    Anyway, give version 1.3 a try, I think it should make sense now and work the way you think it ought to work :)

  110. Alex W. Says:   

    This is a fantastic plugin. Does exactly what I need — including changing the “Site Admin” menu item on my site into a “My Profile” for my subscribers. Outstanding!

    There is one bug, though, that I found. If I am a Subscriber and I log in directly using the login page URL (not, say, from the log in button under my Comments), then I am taken to the dashboard with this error:

    Warning: Cannot modify header information - headers already sent by (output started at /home/.hevea/username/yaoi911.com/blog/wp-admin/admin-header.php:27) in /home/.hevea/username/yaoi911.com/blog/wp-includes/pluggable.php on line 770

    Now, using another plugin, Peter’s Login Redirect, I can avoid this error. (I just set it up so that Subscribers who log in are automatically redirected to the Profile page.) But this isn’t ideal because now when someone logs in under Comments, they are also taken to the Profile page, instead of being gracefully returned to the comment section of the post they wanted to comment on.

    Is there a way to set this up so that when one logs in directly from the Login screen, one is taken to the Profile without this error?

    Thank you for your great work!

    Alex

    P.S. If you decide to take a look at my Web site, be warned that it is Not Safe For Work.

  111. waitangi Says:   

    Nice, works great with 2.6. Any chance of this being adapted to also hide the wordpress footer in the dashboard, and maybe the top menubar header links? Could hide it css I guess but the ‘logout’ is handy.

  112. waitangi Says:   

    ahh now did I just read somewhere that this ability to choose who-sees-what is part of 2.6.2?

  113. Yanko Says:   

    Great plugin, works fine.. thank you! :)

    I even succeed to redirect the users direcly to the index page and then if they want to edit their profile they just need to click it from the left side menu :)

    Thank you very much again!

  114. Svetlana Says:   

    perfectly works! this exactly what I needed. Many thanks!!!!

  115. gaurav Says:   

    It installed fine. THe problem I find is if the Net connection is slow the User logs in and goes to the Dashboard after which it automatically redirects to the Profile page.
    Same if I pu the URL in directly in the browser after logging in.
    http://www.indianpolo.com/poloblogwp/wp-admin/

  116. chelsey Says:   

    Nice and simple. Thought it might actually direct subscribers to home page if they attempt to access wp-admin/index.php, as they can still login if they are savvy and know the URl. guess thats only wordpress devs though maybe am being ultra worried!

    Love the way it changes the site admin link to my profile, i can remove my hardcoded link now.

    wicked, thanks :)

  117. Dustin Wyatt Says:   

    This breaks functionality of the Subscribe2 plugin. As seen in this image the Subscribe2 plugin adds a “Your Subscriptions” link to the profile page.

    This plugin hides that link. :(

  118. 35 Tips Tricks To Manage and Handle Multi-Author Blogs | Web Burning Blog Says:   

    [...] Hide Dashboard [...]

  119. Patrick Says:   

    Hi Dustin, I have another site where I have Hide Dashboard and Subscribe2 both installed and I can see the “Your Subscriptions” link just fine. The difference though, is that I use the Social Subscribe2 as part of the Social Privacy v1.1 package. I do not know if there is any differences in the code of the two, but Social Privacy did make some changes to Subscribe2 I think. You can find Social Privacy at http://wordpress.org/extend/plugins/social-privacy/

  120. Patrick Says:   

    Hi Alex, the error you are seeing is related to PHP output buffering. Basically, Hide Dashboard is trying to change the redirection before WP sends out the headers, but this can only be done if PHP is buffering the output. See my “Update (2008-08-23)” above.

    However, thanks for the information about Peter’s Login Redirect. I will look into it to see if we can do this for those running WP 2.6.2 and above. But I think that those running older versions of WP may have to stick to PHP output buffering.

  121. Patrick Says:   

    Hi Chelsey, if you want to force disable access to wp-admin/index.php you need to have PHP output buffering enabled and click on the “Force Profile Page Only” option in Hide Dashboard.

  122. John Says:   

    I am also having trouble with this plugin- I am getting the error:

    Warning: Cannot modify header information - headers already sent by (output started at …filename) in /home/username/public_html/wp-includes/pluggable.php on line 770

    I am using wordpress version 2.5 and version 1.3 of this plugin.

    Any ideas as to why this is happening? Thanks.

  123. Dale Says:   

    Awesome plugin! Thanks! To make this stupendous, it would be cool to add the RSS feed options into your HideDashboard meta widget.

    Thanks again. It’s obvious you’ve put a lot of work into this.

  124. Dale Says:   

    Hi,

    I’m using Hide Dashboard 1.3 on WordPress 2.7 and ever since upgrading whenever I try to log out, I get a error which says:

    WordPress Failure Notice

    You are attempting to log out of __________.

    Please try again.

    It then takes me back to the Home Page with the “Please try again” link. I’m pretty sure it wasn’t doing that before upgrading to 2.7. Thanks in advance for any help.

  125. Astrid Says:   

    Hello,

    I have the same error since the Wordpress 2.7 upgrade as Dale above mentioned. (12:54 am, Tuesday, 23 Dec 2008)

    Do you have a solution or an upgrade?

  126. WordPress Plugins Used On The Michel Fortin Blog | The Michel Fortin Blog Says:   

    [...] Hide Dashboard 1.1 Hide Dashboard from non-administrators. Great for membership sites. I use this plugin when I have guest bloggers or editors accessing my blog. (But with the new customizable admin interface with WordPress 2.7, it’s no longer needed.) [...]

  127. Astrid Says:   

    This seems to the problem, but I don’t know exactly how to fix it?
    http://codex.wordpress.org/Template_Tags/wp_logout_url

  128. Wordpress - Resources - Page 2 - DesignersTalk Says:   

    [...] customizable too! Get-a-post - Display a specific post (or Page) with standard WP template tags. Hide Dashboard - for hiding the dashboard from non-Administrators. You can also force profile page for them. [...]

  129. Leon Loberman Says:   

    I am having the same logout problem - any chance of a fix?

  130. teja Says:   

    xcellent it worked perfectly

    i`m using wordpress 2.7

  131. Плагины WordPress, используемые на блоге Мишеля Фортина | Сайты и программы дл Says:   

    [...] Hide Dashboard 1.1 [...]

  132. Carol Says:   

    Hi, great little plugin! does just what I need!
    I do have the same problem with the logout feature - it’s not important but I just don’t want to confuse visitors to the site if it keeps giving them error messages!

    Cheers

  133. Steve Says:   

    Same problem as Leon, except mine is a error 500, page not found error, when I try to logout.
    I also would like to be able to remove the email address listed directly next to (under) my log on name in the new meta area.
    Great plug in.

  134. ilg Says:   

    For anyone having trouble with headers already sent despite having output buffering turned on (the symptom for me was that it only happened on some pages, not all), it may be that your PHP’s output buffer is too small. For me, this became an issue when I moved up to 2.7, with all the script stuff on the main admin page being sent before the action hook that Hide Dashboard uses.

  135. Roggie Says:   

    I’m having the same logout prob - using wp 2.7.
    I’ve hacked the plugin to remove the logout link, does anyone else have a better work around?

  136. NMC Says:   

    I’m testing to see how login works with the plugin.

  137. jillies Says:   

    Seems to me it works fine on wp 2.7.1 - with no logout problems whatsoever..

    However I would like this to work on the contributor level, whereby you would still be able to access the Write panel and the Profile panel :)

    Any quick fixes for this?

  138. Kevin Says:   

    I’m on 2. 7. 1 and I’m having the same problem with logging out. Has anyone figured out a way of reconciling this? Also, would someone be able to tell me how to remove the built in login and registration from WP?

  139. Ryan Says:   

    I have solved the logout problem in 2.7.1. You have to change line 188. For some reason, I am not able to get the code on here. I will try to put it on the wordpress.org plugin page.

  140. Ryan Says:   

    just email me at ryandeel [at] wowway.com and I will provide you with the code for the fix.

  141. Steve Says:   

    The plug in is coded for the older version of wordpress which had a more simple log out code.

  142. saxamo Says:   

    Hello there,

    Is this plugin now working with wordpress 2.7.1 properly and coded to work with the release of 2.8 next week? This is a GREAT plugin and NEEDS to be available, unless of course 2.8 provides this functionality normally. Which I can’t really understand why not. I mean do we really want registered users seeing our commerce sales or whatever?

    Please let me know if I can install this plugin for 2.71?

    I appreciate your help and your time..

    Kind regards,
    Saxamo

  143. pouet Says:   

    A version for 2.7.1 is here :
    http://bavotasan.com/tutorials/hiding-the-wordpress-dashboard-for-non-admin-users/

  144. jiltin Says:   

    I was just trying to learn plugin api. First I wanted to test some sample plugin for admin and I found your site while goggling! Clean plugin, working perfectly working with my test site. Simple and crisp code. I tested this plugin with 2.8.2 version of wordpress, working fine. Keep the good work. I will soon put it at my site jiltin.com

  145. Aloha Says:   

    Mahalo for this plug in — looked all over and I found you!

  146. 35 Tips Tricks To Manage and Handle Multi-Author Blogs | Quest For News, A TUTORIAL Base Says:   

    [...] Hide Dashboard [...]

  147. Firefly » Blog Archive » Firefly-Update Says:   

    [...] Integration von Hide Dashboard [...]

  148. DK Says:   

    The plugin works and hides the dashboard, but when I’m logged in as a non-admin there is still a tab for access to the comments. Is there a way to remove the comments tab as well? I’m using WP 2.8

  149. 30+团队博客适用的WordPress插件和技巧 | 帕兰映像 Says:   

    [...] Hide Dashboard 可以隐藏掉后台的 Dashboard 页面,作者较多级别较多的时候有用。 [...]

  150. 21 Great Plugins to Manage Multi-Author Blogs Efficiently | The PhenixbluE Says:   

    [...] 7. Hide Dashboard [...]

  151. 微博客 / μBlog » 21个 WordPress 多作者博客精品插件 Says:   

    [...] Hide Dashboard [...]

  152. 微博客 / μBlog » 21个 WordPress 多作者博客精品插件 Says:   

    [...] 7. Hide Dashboard 隐藏控制台 [...]

  153. 35 Tips Tricks To Manage And Handle Multi-Author Blogs « Photoshop.vn – Your Design Resource Says:   

    [...] Hide Dashboard [...]

  154. Marcos Watanabe Says:   

    Thanx! Nice plugin!

  155. 35 Tips Tricks To Manage and Handle Multi-Author Blogs | 9Tricks.Com - Tips - Tricks - Tutorials Says:   

    [...] Hide DashboardA pretty self-explanatory plugin. The reason why you would need this is when you have multiple authors on your blog and you want to hide (or customize) the dashboards. [...]

  156. 饼干小窝 » 21个 WordPress 多作者博客精品插件 Says:   

    [...] Hide Dashboard [...]

  157. MichelFortin.com’s Active Plugins | BootStrapNow Says:   

    [...] Hide Dash­board 1.1 Hide Dash­board from non-​​administrators. Great for mem­ber­ship sites. I use this plu­gin when I have guest blog­gers or edi­tors access­ing my blog. (But with the new cus­tomiz­able admin inter­face with Word­Press 2.7, it’s no longer needed.) [...]

  158. Lazy Blogger’s guide to Super Charge WordPress with 100+ Plugins Says:   

    [...] co-authors who are contributors may only edit posts if they have not been published (as is usual).Hide Dashboard – This plugin lets you hide dashboard features from some users. The title just say it [...]

  159. felipe Says:   

    that’s great! I’ll put it on my web! thank you so much

  160. Plugin utili per WordPress « 3rd.im Says:   

    [...] Hide Dashboard A pretty self-explanatory plugin. The reason why you would need this is when you have multiple authors on your blog and you want to hide (or customize) the dashboards. [...]

  161. 35 Tips Tricks To Manage and Handle Multi-Author Blogs | Wordpress Says:   

    [...] Hide Dashboard [...]

  162. 21 Great Plugins to Manage Multi-Author Wordpress Blogs | Webmaster 9 Says:   

    [...] 7. Hide Dashboard [...]

  163. Blog Multi-Autore? Ecco Alcune Cose che ti Possono Aiutare | Kuandika Says:   

    [...] Hide Dashboard: Il motivo per cui si avrebbe bisogno di questo plugin, è nel momento in cui si hanno più autori sul proprio blog e si desidera nascondere (o personalizzare) la dashboard. [...]

  164. Great Plugins to Manage Multi Author Wordpress blog | Just be Better Says:   

    [...] 7. Hide Dashboard [...]

  165. 20 Plugins para administrar um blog com vários autores « Tudo sobre Wordpress Says:   

    [...] Esse plugin permite que você esconda o dashboard de alguns usuários. O nome desse plugin diz tudo. Download do plugin Wordpress Hide Dashboard [...]

  166. Ban Access to WP Dashboard for Authors with Hide Dashboard Wordpress Plugin :Multi author Wordpress blog Says:   

    [...] Download [...]

Leave a Reply