• I recently upgraded to 2.0.6 and my blog was working perfectly. However today I installed a plugin called-

    WordPress Hide Dashboard Plugin from http://www.deepwave.net/articles/hide_dashboard/

    The install went ok. However once I went to the blog home page it now comes up as being unreachable. I can still access the site just fine through the admin and all settings appear to be the same. When I edit a post I can see it in the edit window, but the preview window is unable to load the post.

    I didnt see any changes made to the code and the problem is the same even when I change to the default theme.

    I have uninstalled it and even deleted it from the plugin folder but it has not fixed the problem.

    I assume the plugin somehow altered fields in the database but I need to know what to fix before I can fix it.

    Is there anyone who knows what this thing did? The code is pretty simple for the plugin and I’ve listed it below.

    Thanks

    —————————–

    Author: Patrick Khoo
    Author URI: http://www.deepwave.net/
    Version: 1.0
    */
    /*
    Introduction
    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..

    Installation
    1. Copy the file hide-dashboard.php to your WordPress plugins directory.
    2. Login to WordPress as Administrator, go to Plugins and Activate it.
    3. Login as a non-Administrator and you should immediately be redirected
    to your account Profile page instead of the Dashboard

    Release Date: 2007-01-05
    Copyright (c) 2007 Patrick Khoo
    */

    function dwpage_restrict_adminhead() {
    global $submenu, $menu;

    if(!current_user_can(‘level_10’)){
    unset($menu[0]); // hide dashboard
    unset($menu[35]); // hide Users or Profile
    unset($submenu[‘profile.php’]);
    }
    }

    function dwlogin_redirect($link) {
    if(!current_user_can(‘level_10’)){
    $link = preg_replace(“/Site Admin/”, “My Profile”, $link);
    $link = preg_replace(“/\/wp-admin\//”,”/wp-admin/profile.php”,$link);
    }
    return $link;
    }

    add_action(‘admin_head’,’dwpage_restrict_adminhead’);
    add_filter(‘register’, ‘dwlogin_redirect’);

    ?>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Can’t load my blog anymore after plugin install’ is closed to new replies.