• There are a lot of plugins that go close buy not far enough in keeping non-admins from seeing/using certain features of the admin interface… in particular when writing/editing posts.

    I’d to be able to go into the core code and hack every little bit of the admin interface with a simple tag that will only hide it formnon-admin users.

    In essense I’ll only be hiding text and images, not the functions, as i guess that would screw the workings up. I want to HIDE all those bits form users to stop them clicking on them… simple as that.

    For example I’d like to use this <!– and –> but only have it work for non-admins.

    Can it be done?

Viewing 5 replies - 1 through 5 (of 5 total)
  • If, perchance, your authors don’t need anything in the Admin area except parts of Write Post, then I would suggest you check out TDO Mini Forms. With this, and you have the users bounce back to the page they came from when logging in (instead of bouncing them to wp-admin), now you can have the users only stay in the frontend of the website, but they can still write a post. Just one idea. I don’t know about hacking the core files for the Write Post panels, that would be bad because you would lose the changes when you upgrade WP.

    Thread Starter Pete

    (@perthmetro)

    yeah but unfortunately they can’t re-edit their posts with this plugin, a feature i need

    Thread Starter Pete

    (@perthmetro)

    Again close but no cigar, and i don’t think its compatible with 2.7

    I want to be able to hide ANYTHING even it does mean I need to hard code it.

    I think you should look more at WP-Lite. WP 2.7 hasn’t come out yet. Many many plugins will (need to) be updated for WP 2.7.

    If you want to hack the core code (which I don’t recommend), there’s a chance you can use the same code in your Admin area php layouts, as you would use in your frontend theme, if you wanted to hide a certain area of your theme from users under a certain User Level (non-Admins). I don’t know whether it would work in an admin area or not, but here is some code I use on the frontend of a site.

    <?php global $user_login, $user_identity;
    get_currentuserinfo();
    if ($user_login); ?> <h3>DO STUFF HERE</h3> 
    
    <?php
      if (current_user_can('level_10')) : ?> DO MORE STUFF HERE
    
    <?php elseif  (current_user_can('level_7')) : ?>
    DO STUFF HERE
    
    <?php elseif  (current_user_can('level_0')) : ?>
    DO STUFF HERE
    
    <?php else : ?>
    DO STUFF HERE
    
    <?php endif; ?>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how to hide (not disable) anything from the admin interface 4 everyone but admin’ is closed to new replies.