No announcement yet.

How would make the navbar right under the header, and the same size as header?

  • Filter
  • Time
  • Show
Clear All
new posts

  • How would make the navbar right under the header, and the same size as header?

    I would basically like to put an image as my header, then connect the navbar to the bottom of this navbar, I have tried to do this through javascript and can't get it to work the way I would like, how would I change it to work this way?

  • #2
    Admin CP -> Styles & Templates -> Style Manager -> « » -> header

    Remove the red code:

    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    	<td align="$stylevar[right]">
      Now that the nav buttons are in the
      navbar template, you can stick whatever
      you like into this space.
      This makes it much easier for novice
      admins to customize their header
      template without affecting important
      navigation elements.
    <!-- /logo -->
    [color=red]<!-- content table -->
    Admin CP -> Styles & Templates -> Style Manager -> « » -> Navigation / Breadcrumb Templates -> navbar

    At the top, remove the red code:

    <script type="text/javascript">
    function log_out()
    	ht = document.getElementsByTagName("html");
    	ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
    	if (confirm('$vbphrase[sure_you_want_to_log_out]'))
    		return true;
    		ht[0].style.filter = "";
    		return false;
    [color=red]<br />[/color]
    <!-- breadcrumb, login, pm info -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    ...then add the blue code at the bottom:

    		<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
    		<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]">$vbphrase[private_messages]</a></td></tr></if>
    		<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]">$vbphrase[subscribed_threads]</a></td></tr>
    		<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
    		<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php?$session[sessionurl]">$vbphrase[whos_online]</a></td></tr></if>
    	<!-- / user cp tools menu -->
    <!-- / NAVBAR POPUP MENUS -->
    [color=blue]<!-- content table -->
    That should scoot the navbar up to be flush with the header and bring it out to the same width as the header.


    • #3
      Would this take the whole navabar up including the signbox? I would like it so basically the navation portion and signon were flipped, so the navagation part would basically look to be a part of the banner, instead on the signon area.


      • #4
        See this thread.


        • #5
          Originally posted by Jake Bunce View Post
          Been there, done that, but it brings me here:

          and this doesn't seem to work with 3.7 on my server and I am still wonderiing why.

          But thanks for the answer anyway.
          best regards

          Anne Liebler ist die Hobbyschneiderin


          • #6
            Please start your own thread in the relevant forum for the version of vBulletin that you are running.
            Kerry-Anne :)

            Twitter Blog



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