1
basically, i'm trying to have an active module that i can access through links but without having it show on the main menu.
i tried to set modversion['hasMain'] to 0 in the xoops_version.php file but the module disappears from the main menu and also from the groups page in admin.
so there is no longer a check box for setting priviliges to this module and the home page says "permission denied".
if modversion['hasMain']=1 everything works fine just that the module appears in the main menu, which i'm trying to avoid.
any way around this?
thank you.
here's the index.php:
include("../../mainfile.php");
$xoopsOption['show_cblock'] =1;
$xoopsOption['show_rblock'] = 1;
include(XOOPS_ROOT_PATH."/header.php");
some html here
include(XOOPS_ROOT_PATH."/footer.php");
------
xoops_version.php file:
$modversion['name'] = "simple_mod";//name of module
$modversion['version'] = 1.01;
$modversion['description'] = "My Module";
$modversion['author'] = "";
$modversion['credits'] = "";
$modversion['help'] = "";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 0;
$modversion['image'] = "blackhat.gif";
$modversion['dirname'] = "simple1";//name of directory
// Admin things
$modversion['hasAdmin'] = 0;
$modversion['adminpath'] = "";
// Menu
// Menu for submenus in main menu when page loads
$modversion['hasMain'] = 1;//0 to remove from main menu
---