2
I dont know if this might help you!
In your xoops_version
where you have the 'has main' and 'submenu'
try using this;
should work for atleast to the regisetered ..
it is not my idea I only found it in a file somewhere.! maybe it is something that is close to what you need.
// Menu
$modversion['hasMain'] = 1;
global $xoopsModule;
if (is_object($xoopsModule) && $xoopsModule->getVar('dirname') == $modversion['dirname']) {
global $xoopsModuleConfig, $xoopsUser;
$isAdmin = false;
if (!empty($xoopsUser)) {
$isAdmin = ($xoopsUser->isAdmin($xoopsModule->getVar('mid')));
}
// Add the Submit new item button
if ($isAdmin || (isset($xoopsModuleConfig['allowsubmit']) &&
$xoopsModuleConfig['allowsubmit'] == 1 &&
(is_object($xoopsUser) ||
(isset($xoopsModuleConfig['anonpost']) && $xoopsModuleConfig['anonpost'] == 1)))) {
$modversion['sub'][1]['name'] = _MI_LANGUGE_SOMETHING ;
$modversion['sub'][1]['url'] = "submit.php?op=add";
}
$modversion['sub'][2]['name'] = "lang_something_here.php"; /* the button 's language */
$modversion['sub'][2]['url'] = "../to somewhere/"; /* the url */
}
+++++++++++++++++++++++++++++++++++
or there could be other pretty ways to do it!1