Hi,
Small errors too on lines 45 and 48 of im8-box-hide.php:
Replace:
foreach ($hide[$user_role]['post'] as $box => $value)
foreach (array('normal', 'advanced', 'side') as $context) remove_meta_box($box, 'post', $context);
foreach ($hide[$user_role]['page'] as $box => $value)
foreach (array('normal', 'advanced', 'side') as $context) remove_meta_box($box, 'page', $context);
with
if($hide[$user_role]['post']){
foreach ($hide[$user_role]['post'] as $box => $value)
foreach (array('normal', 'advanced', 'side') as $context) remove_meta_box($box, 'post', $context);
}
if($hide[$user_role]['page']){
foreach ($hide[$user_role]['page'] as $box => $value)
foreach (array('normal', 'advanced', 'side') as $context) remove_meta_box($box, 'page', $context);
}
Seems to fix the similar issues (this is on WordPress 3.0 btw).
Will you be implementing options for custom post types? Just a thought - I manage them myself at the moment and create/hide the meta boxes when I actually create the custom post types, but others may find this handy! Thanks for a great plugin.