6
Thanks Kri_fr for getting me to think more clearly. I should have looked for where the menu items were being collected up, which is in exm.php and not filtered stuff out in the template. However I could not find the lines you mentioned in exm.php but did see where both the module lists were assembled for the drop down menu and the bank of module icons on the right. So scrap the previous suggestion about changing ..../modules/system/class/gui/exm/xotpl/system_indexcp.html and change ..../modules/system/class/gui/exm/exm.php as follows: In the section
// add MODULES Menu items
around line 148 (deals with drop down menu)
foreach ($mods as $mod) {
$rtn = array();
$sadmin = $moduleperm_handler->checkRight('module_admin', $mod->getVar('mid'), $xoopsUser->getGroups());
if ($sadmin) {
$info = $mod->getInfo();
if (!empty($info['adminindex'])) {
$rtn['link'] = XOOPS_URL . '/modules/'. $mod->getVar('dirname', 'n') . '/' . $info['adminindex'];
} else {
$rtn['link'] = XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mod->getVar('mid');
}
$rtn['title'] = $mod->name();
$rtn['absolute'] = 1;
if (isset($info['icon']) && $info['icon'] != '' ) {
$rtn['icon'] = XOOPS_URL . '/modules/' . $mod->getVar('dirname', 'n') . '/' . $info['icon'];
}
}
$menu[] = $rtn;
}
move the last assigment line into the << if ($sadmin) {} >> block such that the last 4 lines change from:
}
}
$menu[] = $rtn;
}
to
}
$menu[] = $rtn;
}
}
Then go further down near line 207 and find a similar << foreach ($mods as $mod) {} >> block where the last 4 lines should be changed from
}
}
$tpl->append('modules', $rtn);
}
to
}
$tpl->append('modules', $rtn);
}
}
This bit deals with the block of icons on the right of the page. That seems a cleaner way to do it.