WordPress.org

Ready to get started?Download WordPress

Forums

hide dashboard from lower authors (5 posts)

  1. manstraw
    Member
    Posted 8 years ago #

    I'm not thrilled about dashboard being force fed. As an admin, I don't mind seeing it, but for my regular authors, it's not really their concern, and it takes too long to load a lot of the time.

    I cruised the various hacks etc. and didn't find something I really liked. Some of the plugins weren't available to event test. So i did a quick hack of my own, which is as follows:

    I changed line 7 in wp-admin/menu.php to read:
    $menu[0] = array(__('Dashboard'),8,'dashboard.php');

    I then moved wp-admin/index.php to wp-admin/dashboard.php

    and then I made a symbolic link to the page I wanted to load by default when you went to .../wp-admin/
    ln -s post.php index.php
    this is for linux of course.

    Now, when someone calls up wordpress/wp-admin/ they will get post.php. You could make any of your pages show up there. Perhaps you prefer profile.php. post.php copies the old behaviour of wordpress that my authors are used to. Also, only authors of level 8 or higher can see the dashboard in the menu.

    What I'd really like is to have the dashboard visibility defined as a user level in a plugin/admin config. I haven't found that anywhere yet.

  2. amory
    Member
    Posted 8 years ago #

    Line 182 in wp-login.php reads:
    if ($user_login && $user_pass) {
    $user = get_userdatabylogin($user_login);
    if ( 0 == $user->user_level )
    $redirect_to = get_settings('siteurl') . '/wp-admin/profile.php';

    It would be very simple to cut and paste this per more user levels. Say if 1 < userlevel < 8 then redirect to /post.php ...

    Probably wouldn't be very difficult to add in future versions under admin options though. Leave a note on the 1.6 page over at the codex.

  3. theillustratedlife
    Member
    Posted 8 years ago #

    Even easier than that, get wp-dash and the Dashboard will become a posting control panel. Handles comments too!

  4. daann
    Member
    Posted 8 years ago #

    I am new to wordpress and php, I was wondering if amory could explain more thoroughly your process of directing a lower level author to a page other than dashboard.

    Thanks for your time

  5. patkhoo
    Member
    Posted 7 years ago #

    I too wanted to have this feature, and came across this thread.. In the end, I managed to figure out how to do this and made a plugin out of it. Check out http://www.deepwave.net/articles/hide_dashboard/ for the plugin..
    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Topic