201
tcnet
Re: Creating submenu
  • 2006/5/23 12:33

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


You can add/delete a module's submenu links in the main menu by editing the xoops_version.php file located in the module's folder.

Save a backup copy before editing the following files!

1) Look in the module's xoops_version.php file to find the modules main menu settings:
// Menu
$modversion['hasMain'] = 1;


Add your submenu links to the module's xoops_version.php file like this:

// Menu
$modversion['hasMain'] = 1;
$modversion['sub'][1]['name'] = _CLA_SUBMENU1;
$modversion['sub'][1]['url'] = "yourlinkfilename1.php";
$modversion['sub'][2]['name'] = _CLA_SUBMENU2;
$modversion['sub'][2]['url'] = "yourlinkfilename2.php";




2)Look in the module's language directory for main.php and add you sublink's name to the module's language variables:

define ("_CLA_SUBMENU1","Your Sublink1 Name Here")
    
define ("_CLA_SUBMENU2","Your Sublink2 Name Here")


or

You can hard code the submenu name in xoops_version.php by replacing the variable _CLA_SUBMENU1 with your link name in quotes. Like this:
$modversion['sub'][1]['name'] = "YourLinkName";


3) Publish the edited files and update the module in XOOPS Control Panel/Module Administration.

When you select the module in the main menu the new submenu items should now appear.

More xoops_version info here.

Hope this helps!



202
tcnet
Re: Help with Banner
  • 2006/5/14 3:22

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


It appears that you may have unneeded tables and rows in the first table after your body tag.

<body style="background-image: url('http://www.wikyd-guild.org/xoops/html/themes/395xps//images/bkg.jpg');">
<
table border="0" width="100%" cellspacing="0" cellpadding="0" style="background-image: url('http://www.wikyd-guild.org/xoops/html/themes/395xps//images/elf.gif'); background-repeat: no-repeat;">

<!-- 
Delete these extra tables and rows
<tr>
<
td align="center">
<
table border="0" width="100%" cellspacing="10" cellpadding="0">
<
tr>
<
td width="600" height="425">&nbsp;</td>
<
td valign="middle">
<
table border="0" width="100%" cellspacing="0" cellpadding="0">
<
tr>
<
td valign="top"></td>
<
td width="10"></td>
<
td valign="top"></td>
<
td width="10"></td>
<
td valign="top"></td>
</
tr>
<
tr>
<
td colspan="5"></td>
</
tr>
</
table>
</
td>
</
tr>
</
table>
</
td>
</
tr>
 
END EDIT -->


Good Luck!




TopTop
« 1 ... 18 19 20 (21)



Login

Who's Online

145 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 145


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits