Jump to content
DevFuse Forums
Sign in to follow this  

Dropdown Submenu Links


This simple tutorial will show you how to clean it up with IPB dropdown menu. Open your Admin CP / Look & Feel Tab / Select your skin / Edit Template HTML / All Global HTML / global_board_header

Find:
[code]<!-- / End board header -->[/code]

Add Above:
[code]<script type="text/javascript">
//<![CDATA[
menu_build_menu(
"subnav",
new Array(
img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>",
img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>",
img_item + " <a href='{$this->ipsclass->base_url}act=link'>Link</a>"
) );
//]]>
</script>[/code]

Find:
[code]<div class='ipb-top-right-link'><a href="{$this->ipsclass->base_url}act=Help">{$this->ipsclass->lang['tb_help']}</a></div>[/code]

Add Above:
[code]<span id="subnav"><div class='ipb-top-right-link'><a href="#subnav">Links Name</a></div></span>[/code]

To finish up Save Template Bit

The most important thing with this tutorial is that it matches each bit of code.

* span id="subnav"
* href="#subnav"
* menu_build_menu("subnav",

Make sure they all match as subnav, or what ever you have chosen.


Recommended Comments

There are no comments to display.

×