• I am not confortable with my users having access to links that take them to the dashboard, the documentation and suppor forums from their profile page.

    How can I have these links/items removed?

Viewing 11 replies - 1 through 11 (of 11 total)
  • To remove the Dashboard from the menu for users, edit menu.php (in wp-admin/ directory), and change this line:

    $menu[0] = array(__('Dashboard'), 0, 'index.php');

    to:

    $menu[0] = array(__('Dashboard'), 1, 'index.php');

    The number before ‘index.php’ is the user level allowed access to that menu. The doc and support links will have to be edited out of admin-footer.php.

    Hacking notes: Back up any source files before editing them, and comment your changes for future reference.

    Thread Starter gsu90

    (@gsu90)

    Thanks. That did it.

    Thread Starter gsu90

    (@gsu90)

    OOoops….I was wrong. For some reason a level one user can still see the content of the dashboard immediately after login. The link that takes the user to the dashboard is not there, but the content from index.php is still there. I don’t want anyone at this level to be able to see this. I want them to immediately see the entry page after successful login.

    Please help!

    There’s somewhere you can change a line in the wp-login.php file – not sure which line, let me go look….

    (wp-login.php) Line 165 $redirect_to = 'wp-admin/';

    Okay – in wp-login.php, look around line 165 (if you haven’t got an editor that does line-numbering, go grab notepad2 from http://www.flos-freeware.ch/….). You should see $redirect_to = 'wp-admin/';

    I would suggest replacing “wp-admin/” with “index.php” …. that will dump them out to the main page of your blog (if I’ve got that wrong, someone will correct me, I’ve no doubt; in any case, I don’t think it can hurt to try it – BUT MAKE BACKUPS OF ANY FILES YOU ARE CHANGING!!!!

    Ah…. yeah, thanks amory….

    Thread Starter gsu90

    (@gsu90)

    OK…I see what you guy are trying to do here and I really appreciate the help, but there is another problem that comes up.

    Yes, if a user logs in it will take that person to the index page but when the person clicks on “Site Admin” that links takes them right back to the “wp-admin/” page…which displays all of the dashboard information.

    What should I do now?

    Hmm. There’s probably a way to obscure the “site admin” link display, depending on user level or something. I don’t know myself how you’d do that. Then again, there’s really nothing the average user can “get into” from the main dashboard page, you know….

    Thread Starter gsu90

    (@gsu90)

    Is it possible to modify the “Site Admin” link so that it takes that person right to “wp-admin/post.php”?

    Where would I go to do this?

    Is that part of your theme or is a function (that calls the admin link). Either way you could just copy the source code and change the link to post.php in your sidebar/index … or whichever theme file it’s located in.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Changing the profile page (wp-admin/profile.php)’ is closed to new replies.