Add another dropDown to my NavBar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Maniac
    Senior Member
    • May 2001
    • 105
    • 3.6.x

    Add another dropDown to my NavBar

    I really like the drop down for Quick Links and want to add another one for a custom item on my navBar.

    I edited my navbar and created a new entry called "Site Links":

    Code:
    <td id="navbar_siteLinks"><a href="/forum/local_links.php?">Site Links</a><script type="text/javascript"> vbmenu_register("navbar_siteLinks" ,1); </script></td>
    Then in the NavBar template (inside the <!-- NAVBAR POPUP MENUS --> If Statement) I added another group of links:

    Code:
    <if condition="$show['siteLinks']">
    	<!-- Site Links menu -->
    	<div class="vbmenu_popup" id="siteLinks_menu" style="display:none">
    		<table cellpadding="4" cellspacing="1" border="0">
    		<tr><td class="thead">Site Links</td></tr>		
    		<tr><td class="vbmenu_option"><a href="#">Link #1</a></td></tr>
    		<tr><td class="vbmenu_option"><a href="#">Link #2</a></td></tr>
    		<tr><td class="vbmenu_option"><a href="#">Link #3</a></td></tr>
    		<tr><td class="vbmenu_option"><a href="#">Link #4</a></td></tr>
    		<tr><td class="vbmenu_option"><a href="#">Link #5</a></td></tr>
    		</table>
    	</div>
    	<!-- / Site Links menu -->
    	</if>
    Now I'm stuck...

    I know I have to set the condition $show['siteLinks'] somwhere, just not sure where....

    Any guidance would be greatky appreciated.

    Thanks!
    MORE | UnitedMania
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    See the last post in this thread.

    Comment

    • Maniac
      Senior Member
      • May 2001
      • 105
      • 3.6.x

      #3
      Thanks again!

      That did the trick...

      My big mistake was adding the
      Code:
      <if condition="$show['siteLinks']">
      Once i removed that and made sure all the menu id's were the same it worked like a charm

      Now all I have to do is figure out how to replace my table with the contents from a given template...
      MORE | UnitedMania

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        Originally posted by Maniac
        Now all I have to do is figure out how to replace my table with the contents from a given template...
        Add this code to the phpinclude_start template:

        Code:
        eval('$variable = "' . fetch_template('[color=red]template_name[/color]') . '";');
        Change the red code appropriately. Then you can use $variable in the templates and it will parse to the contents of the template you specify.

        Comment

        • Maniac
          Senior Member
          • May 2001
          • 105
          • 3.6.x

          #5
          Thanks again!
          MORE | UnitedMania

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          😀
          😂
          🥰
          😘
          🤢
          😎
          😞
          😡
          👍
          👎