Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Articles Thread, How To Add Drop Down Menus To Your Navbar in vBulletin; How To Add Drop Down Menus To Your Navbar I think everyone has encountered the situation at some point or ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3345


Reply
LinkBack Thread Tools Display Modes
How To Add Drop Down Menus To Your Navbar
 
 
The God Father
Developer's Avatar

Reply With Quote
 
Join Date: Jul 2008
Location: NDC
Posts: 5,425
10-09-2008, 05:57 AM
 
How To Add Drop Down Menus To Your Navbar


I think everyone has encountered the situation at some point or other where their navbar has got very cluttered and they are faced with either adding yet another navbar, or adding some dropdown menus to group some items.

This tutorial explains how to create an additional drop down menu in your navbar.

Firstly, locate in your navbar template the first instace of Code:
<if condition="$show['popups']">
and add after it Code:
<td id="custommenu" class="vbmenu_control">
<a href="#">Custom Menu</a>
<script type="text/javascript">
vbmenu_register("custommenu");
</script>
</td>
Replace Custom Menu with the title for this menu which you want displayed on your navbar and custommenu with the name that you want to give your link. Note that spaces are not to be used as this will break the connection with the actual menu.

Next, in your navbar template find Code:
<!-- NAVBAR POPUP MENUS -->
and add after it Code:
<div class="vbmenu_popup" id="custommenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">Custom Menu</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
content row
</td>
</tr>
</table>
</div>
Again replace custommenu with the name given to your link. Make sure that you leave the _menu after it as this identifies it as the menu part of the link. Also replace Custom Menu again with the title that you have used for your link.

The content row should be replaced with the actual menu item that you want to have in your new drop down menu.

Repeat the code Code:
<tr>
<td class="vbmenu_option" title="nohilite">
content row
</td>
</tr>
as required to add additional links onto your menu.

If you wish to break your menu into sections like the quicklinks use then add Code:
<tr>
<td class="thead">Custom Menu</td>
</tr>
everywhere that you wish to add a new header.

The content added should be in the normal html format for links.



If you wish to add more than one menu, repeat the process for each one, ensuring that you use a different name for each menu otherwise they will not function correctly.


I hope you find this useful.
__________________
I Love Walking In The Rain Cuz Nobody Know I'm Crying !!
 
 
 
Reply

Articles Thread, How To Add Drop Down Menus To Your Navbar in vBulletin; How To Add Drop Down Menus To Your Navbar I think everyone has encountered the situation at some point or ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3345


Bookmarks

Tags
add, drop, menus, navbar


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Showing the Toolbars and Menus Developer Articles 0 17-11-2008 01:19 AM
Customizing the Excel Menus and Toolbars Developer Articles 0 17-11-2008 01:13 AM
Add a Drop Down Menu - Relative Positioning Developer Articles 0 06-11-2008 07:57 PM
Egypt inflation may drop to 12-13 percent Developer News 0 20-10-2008 07:00 PM
Drop your opinions (IE Vs Firefox) ryan71 Web Technology 2 19-02-2008 01:07 AM