Shawn
10-28-2006, 07:56 AM
This will show you how to add your own custom drop down menus to your navbar. Each drop down menu can have as many items as you need
1.) Log into your ACP and click on Styles and Templates > Style Manager.
2.) On the right hand side you will now find the Style manager. On the drop down list choose Edit Templates.
3.) Next click on Navigation / Breadcrump Templates and open up your Navbar template.
Find:
<if condition="$show['member']">
<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
Add Underneath
<if condition="$bbuserinfo['userid']">
<td id="XYZ_ID" class="vbmenu_control"><a href="$show[nojs_link]#XYZ_ID">$vbphrase[custom_phrase]</a> <script type="text/javascript"> vbmenu_register("XYZ_ID"); </script></td>
</if>
4.) Where it says "XYZ_ID" place your unique ID. For example; new_drop_down. You'll need to add this three times, and each one MUST be identical!
5.) Next you will need to make a new phrase (see below) and enter the varname where it says 'custom_phrase'.
6.) Still in navbar, locate:
<!-- / user cp tools menu -->
Add Underneath:
<!-- Your Menu Name -->
<div class="vbmenu_popup" id="XYZ_ID_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[Custom_Menu_Title]</td></tr>
<tr><td class="vbmenu_option"><a href="LINK.php?$session[sessionurl]">$vbphrase[Menu_Item]</a></td></tr>
</table>
</div>
</if>
<!-- /Your Menu Name -->
7.) Next you need to copy your XYZ_ID and paste it where it says "XYZ_ID_menu". For example; if you used new_drop_down for your XYZ_ID, then it should say new_drop_down_menu for the section that says "id=". Just make sure that whatever XYZ_ID is, that you add "_menu" to the end of it.
8.) Where it says 'Custom_Menu_Title' put your first menu title.
9.) Where it says LINK.php - add the name of the PHP file your menu item is associated with. Repeat for each menu item by duplicating this section of code below the last section:
<tr><td class="vbmenu_option"><a href="LINK.php?$session[sessionurl]">$vbphrase[Menu_Item]</a></td></tr>
$vbphrase[menu_one]
Whatever you want the phrase to say, is what you put in for the 'Text' section.
12.) Save each phrase and copy the varnames to the code above.
13.) Double check everything!
14.) Save your Navbar template.
This completes the Custom Drop Down Navbar Menu modification.
This modification has been tested and is fully compatible with 3.6
1.) Log into your ACP and click on Styles and Templates > Style Manager.
2.) On the right hand side you will now find the Style manager. On the drop down list choose Edit Templates.
3.) Next click on Navigation / Breadcrump Templates and open up your Navbar template.
Find:
<if condition="$show['member']">
<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
Add Underneath
<if condition="$bbuserinfo['userid']">
<td id="XYZ_ID" class="vbmenu_control"><a href="$show[nojs_link]#XYZ_ID">$vbphrase[custom_phrase]</a> <script type="text/javascript"> vbmenu_register("XYZ_ID"); </script></td>
</if>
4.) Where it says "XYZ_ID" place your unique ID. For example; new_drop_down. You'll need to add this three times, and each one MUST be identical!
5.) Next you will need to make a new phrase (see below) and enter the varname where it says 'custom_phrase'.
6.) Still in navbar, locate:
<!-- / user cp tools menu -->
Add Underneath:
<!-- Your Menu Name -->
<div class="vbmenu_popup" id="XYZ_ID_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[Custom_Menu_Title]</td></tr>
<tr><td class="vbmenu_option"><a href="LINK.php?$session[sessionurl]">$vbphrase[Menu_Item]</a></td></tr>
</table>
</div>
</if>
<!-- /Your Menu Name -->
7.) Next you need to copy your XYZ_ID and paste it where it says "XYZ_ID_menu". For example; if you used new_drop_down for your XYZ_ID, then it should say new_drop_down_menu for the section that says "id=". Just make sure that whatever XYZ_ID is, that you add "_menu" to the end of it.
8.) Where it says 'Custom_Menu_Title' put your first menu title.
9.) Where it says LINK.php - add the name of the PHP file your menu item is associated with. Repeat for each menu item by duplicating this section of code below the last section:
<tr><td class="vbmenu_option"><a href="LINK.php?$session[sessionurl]">$vbphrase[Menu_Item]</a></td></tr>
$vbphrase[menu_one]
Whatever you want the phrase to say, is what you put in for the 'Text' section.
12.) Save each phrase and copy the varnames to the code above.
13.) Double check everything!
14.) Save your Navbar template.
This completes the Custom Drop Down Navbar Menu modification.
This modification has been tested and is fully compatible with 3.6