Custom Dropdown Menu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hockyfan
    Senior Member
    • Aug 2002
    • 296

    Custom Dropdown Menu

    This is probably pretty simple; I'd like to create a dropdown menu just like the Quick Links one, but I'd like it to have my own links and text in it - how can I do this?


    h
  • daemon
    Senior Member
    • Jun 2003
    • 2351
    • 3.5.x

    #2
    Go to:

    Admin CP --> Styles & Templates --> Style Manager --> « » --> Navigation / Breadcrumb Templates

    Edit the navbar template and find:

    HTML Code:
    <if condition="$bbuserinfo['userid']">
    				<td id="usercptools" class="vbmenu_control"><a href="#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>		
    			</if>
    Before that, add:

    HTML Code:
    			<td id="custommenu" class="vbmenu_control"><a href="#custommenu">MENU TITLE</a> <script type="text/javascript"> vbmenu_register("custommenu"); </script></td>
    Replacing "MENU TITLE" with the name of your menu.

    Next look for:

    HTML Code:
    	<!-- / user cp tools menu -->
    	</if>
    After that, add:

    HTML Code:
    	<!-- custom menu -->
    	<div class="vbmenu_popup" id="custommenu_menu" style="display:none">
    		<table cellpadding="4" cellspacing="1" border="0">
    		
    		<tr><td class="thead">MENU TITLE</td></tr>		
    		<tr><td class="vbmenu_option"><a href="/link/to/a/menu/item">MENU ITEM NAME</a></td></tr>		
    		
    		</table>
    	</div>
    	<!-- / custom menu -->
    Replacing "MENU TITLE" with the title of your menu and "/link/to/a/menu/item" with the link to your menu item and "MENU ITEM NAME" with the name of your menu item.

    If you want more than one item in your menu, you can just copy this line of code and paste it under the first line of it above:

    HTML Code:
    		<tr><td class="vbmenu_option"><a href="/link/to/a/menu/item">MENU ITEM NAME</a></td></tr>
    Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

    Comment

    • hockyfan
      Senior Member
      • Aug 2002
      • 296

      #3
      Wow, excellent - thank you very much!


      h

      Comment

      • Resale Broker
        Member
        • Aug 2004
        • 37
        • 3.6.x

        #4
        That's just what I was looking for. Thank You!
        Last edited by Resale Broker; Mon 5 Feb '07, 2:10pm.
        Online Sales Training community featuring practical resources including podcasts, scripts, articles and more. - Jeff Blackwell

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...