2
The following section in xoops_version.php defines the language settings for links.
// Menu for submenus in main menu when page loads
$modversion['hasMain'] = 1;//0 to remove from main menu
$modversion['sub'][1]['name'] = _MI_MYPAGE_SMNAME1;//define in language/english/global.php
$modversion['sub'][1]['url'] = "../../modules/ipboard/";
$modversion['sub'][2]['name'] = _MI_MYPAGE_SMNAME2;//define in language/english/global.php
$modversion['sub'][2]['url'] = "../../modules/weblog/";
If you do not plan on developing MyPage into a full-blown module, and you're only using it to display static content, then you can edit these links with static settings, like so...
// Menu for submenus in main menu when page loads
// Menu for submenus in main menu when page loads
$modversion['hasMain'] = 1;
$modversion['sub'][2]['name'] = "CSS Navbar";
$modversion['sub'][2]['url'] = "cssnav.php";
$modversion['sub'][3]['name'] = "DHTML Menu";
$modversion['sub'][3]['url'] = "dhtmlmenu.php";
$modversion['sub'][4]['name'] = "Flash Navbar";
$modversion['sub'][4]['url'] = "flashnav.php";
$modversion['sub'][5]['name'] = "Graphic Navbar";
$modversion['sub'][5]['url'] = "graphicnav.php";
$modversion['sub'][6]['name'] = "Adv. Graphic Navbar";
$modversion['sub'][6]['url'] = "advgraphicnav.php";
$modversion['sub'][7]['name'] = "Sitemap Menu";
$modversion['sub'][7]['url'] = "sitemap.php";
$modversion['sub'][8]['name'] = "More Web Tools";
$modversion['sub'][8]['url'] = "moretools.php";
If there is a space in the 'name' of the link, you must wrap the name in " ". Otherwise you'll have some problems.
From my experience with this "wrapper" module, you do not need to give the full, absolute path, just the name of the file you want to link to that is inside the mypage directory. If you are wanting to link to files outside of the mypage directory, you will want to give to full absolute path or URL like so...
// Menu for submenus in main menu when page loads
$modversion['hasMain'] = 1;
$modversion['sub'][2]['name'] = "My Writings";
$modversion['sub'][2]['url'] = "../../writings/index.php";
$modversion['sub'][3]['name'] = "My Store";
$modversion['sub'][3]['url'] = "http://store.domain.com/";
Hope this is helpful.
James
Insanity can be defined as "doing the same thing over and over and expecting different results."
Stupidity is not a crime. Therefore, you are free to go.