• Resolved Anonymous User 4963935

    (@anonymized-4963935)


    Hi, I am using WP2.8.4 as a CMS to build my customer’s site.

    Question:
    Is there any plugin or method which removes links to WordPress Codex, Forums etc. on the WP control panel? Especially, “More information” link (the right side of “Keyboard Shortcuts” check box ) on “Your Profile”->”Profile” page is annoying .

    Let me know.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Might look at how a plugin does that:
    http://wordpress.org/extend/plugins/wp-hide-dashboard/

    Thread Starter Anonymous User 4963935

    (@anonymized-4963935)

    Thanks MichaelH.

    Might look at how a plugins does that:
    http://wordpress.org/extend/plugins/wp-hide-dashboard/

    The plugin you suggested above only works for subscriber role. However I am giving my customer editor role. Also the plugin come with hide dashboard feature which I do not need.

    But I appreciate your help.

    Since you may not find a plugin that does exactly what you want, that plugin or one of these http://wordpress.org/extend/plugins/tags/dashboard may give you some ideas on what to modify to meet your requirements.

    Thread Starter Anonymous User 4963935

    (@anonymized-4963935)

    Thanks MichaelHl.

    I will think about your suggestion above.

    Thread Starter Anonymous User 4963935

    (@anonymized-4963935)

    Is there any way to determine if the user who currently logged in has a administrator role or not?

    Is the ID of administrator always “1”?

    let me know.

    @dogante: The user ID is only 1 for the admin account that is set up when WordPress is installed. If there is another user added that is given an administrator role, their user ID would be different, but they would still be an administrator.

    I’m going to suggest that you take a look at the Adminize plugin to see if you can hide/disable the areas you mentioned using that: http://wordpress.org/extend/plugins/adminimize/

    It allows you to choose what role(s) can/cannot have access to certain areas in the WordPress admin area.

    I’m also going to suggest that you upgrade that install to version 2.8.5. No sense in developing a client’s site with an outdated version of WordPress.

    Thread Starter Anonymous User 4963935

    (@anonymized-4963935)

    Thanks kpdesign.

    With Adminimize plugin, I was not able to delete “More information” link (the right side of “Keyboard Shortcuts” check box ) on “Your Profile”->”Profile” page(I want to delete only the link, not entire profile page.).

    So, I think I can redirect the user to another page when they crick the link. I wrote a code bellow to redirect user. However, it is not working.

    function redirect_document_link() {
    	if ( !current_user_can('manage_options') && ($_SERVER['HTTP_HOST'] == 'codex.wordpress.org' || $_SERVER['HTTP_HOST'] == 'codex.wordpress.org' ) ) {
    		wp_redirect(get_option('siteurl') . '/wp-content/theme/default/index.php');
    		exit(0);
    	}
    }
    add_action( 'init', 'redirect_document_link' );

    Can somebody tell me what is wrong with the code I wrote above?

    Hi Dogante,
    I can not help with your problem, but if you can solve it would you mind posting how you did it, on the post here. I need this problem solved as well.
    Thanks

    Thread Starter Anonymous User 4963935

    (@anonymized-4963935)

    Hi B1gft.

    All Right. I will post the code if the code above become working. Alternatively, If you solve the problem with the code above, please post the fixed code on this thread.

    Please somebody help us out. Let us know What is wrong with the code I am presenting above.

    dogante,

    two comments:
    1. hide-dashboard actually has a working redirect function called: wphd_admin_redirect
    you probably need to customize it to fit your need, but it works very well.

    2. I added the following function into hide-dashboard plugin to hide the more information link in profile page.

    function wphd_hide_help_link() {
    		echo "\n" . '<style type="text/css">#your-profile .form-table a { display: none; }</style>' . "\n";
    }

    hope this helps.

    [signature moderated Please read the Forum Rules]

    Thread Starter Anonymous User 4963935

    (@anonymized-4963935)

    Thanks smallwei.

    1. hide-dashboard actually has a working redirect function called: wphd_admin_redirect
    you probably need to customize it to fit your need, but it works very well.

    All right I will try it.

    2. I added the following function into hide-dashboard plugin to hide the more information link in profile page.

    function wphd_hide_help_link() {
    echo “\n” . ‘<style type=”text/css”>#your-profile .form-table a { display: none; }</style>’ . “\n”;
    }

    Yes, it worked.

    Since smallwei’s suggestion worked for me, I close this thread.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Removing links to WP Codex, Forums etc. on the WP control panel’ is closed to new replies.