3
For news, and to hide the submenu from groups, go to the xoops_version.php in the root of "News"
Look for the "menu" part and change it to something like this:
// Menu
$modversion['hasMain'] = 1;
global $xoopsUser;
if(!empty($xoopsUser)) {
$group = $xoopsUser->getGroups();
if (in_array(2, $group)) { //and other groups
$modversion['sub'][1]['name'] = _MI_NEWS_SMNAME1;
$modversion['sub'][1]['url'] = "submit.php";
}
}
$modversion['sub'][2]['name'] = _MI_NEWS_SMNAME2;
$modversion['sub'][2]['url'] = "archive.php";
group 1 is admins
group 2 is registered users
each group you create has its own id
this can be adapted to any module, just look for the xoops_version.php
I found this code from here and there, I am not a php genius..