Sponsors

Want to advertise here? Go to Text link Ads.

Text Link Ads


« | Home | »

WPlite-MU – Hide Menu Items in WPMU

November 2nd, 2009

wplite-mu-hide-menu-items-in-wpmu

I’ve recently begun doing more and more work with WPMU, and one of the hurdles I’ve most encountered is that of customizing the Admin menus. In the scenario I’m working in, clients are given the administrator role for their blog, however, in most scenarios, there are elements that they just don’t need to touch. D. Sader has an excellent Toggle Admin Menus plugin that will cover most of the default Admin pages, however due to some limitations in how the dashboard is tied to widgets, you can’t hide that page from users with that plugin. This is what set me off looking for such a plugin.

I discovered WPlite, which at first glance looked exactly what I wanted. However, due to different permissions issues with roles, it actually wouldn’t block anything for blog admins, which in my case I needed. It also didn’t allow to hide itself, which would have defeated the sole purpose of the plugin. So I did a quick change to hide the menu items from everyone except Site Admins, and allow the blocking of this plugins menu item as well.

As I point out in the Read Me file, this plugin does not physically prevent a user from accessing the page if they normally have permission, it simply hides it in the menu, so if you are using the at a glance widget and want to hide the widgets menu completely, you’ll need to customize this as well. For more stricter control, definitely rely on D. Sader’s plugin, but unsuspecting users not familiar with WP, they will be none the wiser, and you can hide some of the other menu items that might normally appear for blog admins, or others roles for that matter. Note, because I specifically was looking for a way to hide widgets, and didn’t see anything out of the box for Role Manager, I didn’t go that route. For my needs, the combination of this and the Toggle Admin Menu’s I’m completely satisfied with the solution.

Also, currently this plugin must be uploaded to wp-content/plugins, and activated. You can use the built in activate site wide, or use something like Plugin Commander if you are looking for even more control over plugins. Also, this currently requires a site by site configuration, as I wanted more granular control over which blog admins see what. I will eventually look into setting some defaults, possibly via an admin interface, that would be set each time the plugin is active. If anyone wants to help contribute to that effort, I’m all ears.

Any questions or feedback for the WPMU version should be directed towards this post, Muhammad clearly pointed out he doesn’t have time to address the WPMU version. I offered him the changes I had made if he wanted to release a WPMU version himself. That said, all credit for the plugin goes to him, and if you find yourself wanting to donate anything to the development of the plugin, you should seek out the original plugin and show him some love.

This is my first attempt at releasing any kind of WPMU plugin, so certainly, any feedback or suggestions are greatly welcome.

Download WPlite-MU.

Update So I stumbled upon another plugin similar to WPlite that gives even greater control over customization, which seems to work quite well with WPMU, as you can hide items from Admins and Site Admins are not affected. It still is a plugin that has to be configured on a site by site basis, but as I said, gives a far more granular control over many more elements. I will continue to work on WPlite-MU once I get the current project I’m working on finished, but wanted to share my discovery until then. You can check out the Adminimize plugin at WordPress – Extend. The author’s site is in German, but there are English instructions, and configuration is fairly straight forward for people familiar with WordPress.

Popularity: 75% [?]


Possibly Related:


1 Trackbacks/Pingbacks

  1. Pingback: Wordpress Multi User » WPlite-MU – Hide Menu Items in WPMU on November 4, 2009

4 Comments

  1. Sigales, November 2, 2009:

    Olá,

    Arquivo quebrado. Baixei o arquivo, mas esta corrompido. Me pareceu perfeito a solução. Se você puder me enviar por email ou corrigir o arquivo, lhe agradeço muito.
    Obrigado

    Hello,

    File broken. I downloaded the file, but is corrupted. It seemed the perfect solution. If you can send me by email or correct the file, thank you very much.
    Thanks

  2. Miklb, November 2, 2009:

    Sorry about that, I had the path wrong on the download, should be fixed now. Thanks for the heads up, let me know if it works out for your needs.

  3. Sigales, November 4, 2009:

    Miklb,

    I downloaded, installed and operated properly. But I have a problem and maybe you can help me, or maybe change the plugin, hehehe.

    To disable I have to score, ie for each new account is all enabled. I wish you the contrary, come all disabled and I turn on one by one. Thus, by creating a Write Panel Flutter in it does not appear unless I score.

    I await contact.

  4. Miklb, November 4, 2009:

    Sorry, I don’t follow your question. If you mean you want all of them disabled by default, I haven’t gotten that far with the plugin. The plugin is set up to define some defaults, however, I haven’t added a front end for that or hooked it up to the database. You may want to look at the Menu’s plugin by D. Sader that I mention if that ’s something you need. That one is a Site Admin->Option, and covers most of the menus, just not Widgets, or any of the menus under Settings that plugins add.

Sorry, comments for this entry are closed at this time.