VB navbar

Discussion in 'vBulletin Discussions' started by kneel, Sep 24, 2009.

  1. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    Ok...so if u take a look at my site...I got it so my navbar is right under my header logo. I even put a space in between them. So now, my question is, can anyone tell me how to take the navbar out of the box and make it a completly seperate thing?

    It would be like this......

    *header logo*
    *navbar*
    *forum welcome box*
    *main page*

    Thanks!!!
     
  2. Yoshi

    Yoshi Regular Member

    Joined:
    Jun 9, 2005
    Messages:
    219
    Likes Received:
    11
    Location:
    UK
    You want it to look like this?

    awww.adminaddict.net_data_MetaMirrorCache_502d5b704002d1b1a77463af53890c51.jpg
     
  3. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    YES!!!!
     
  4. Yoshi

    Yoshi Regular Member

    Joined:
    Jun 9, 2005
    Messages:
    219
    Likes Received:
    11
    Location:
    UK
    Ok, from your navbar template, grab all the bit between

    Code:
    <!-- nav buttons bar -->
    *all the code here*
    <!-- / nav buttons bar -->
    Then put it in your header template, beneath the code for your banner/logo, but put it above this bit

    Code:
    <!-- content table -->
    $spacer_open
     
  5. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    ok.. i just tried that second part..(the first part was already done) and it streched my navbar all the way accross the screen instead on keeping it the same size... ??

    any fixes that im missing?
     
  6. FullMetalBabe

    FullMetalBabe Zealot

    Joined:
    May 30, 2009
    Messages:
    2,912
    Likes Received:
    339
    Try setting the width of the nav bar at 976px
     
  7. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    how?
     
  8. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    heres my navbar code... I tried setting it to 976 but it messed it up...pushed it all to the left..


    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="5" width="860" cellpadding="5" cellspacing="5" align="center">
    <tr>
    <td align="center"><a href="[url=http://www.tunemytoyota.com]TuneMyToyota.com[/url] $session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    </tr>
    </table>
    <!-- /logo -->
    </br>
    <!-- nav buttons bar -->
    
    <div class="tborder" style="padding:$stylevar[cellspacing]px; border-top-width:0px">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
    <tr align="center">
    <if condition="$show['member']">
    <td class="vbmenu_control"><a href="[URL]http://tunemytoyota.com?">Home</a></td[/URL]>
    <td class="vbmenu_control"><a href="[url=http://tunemytoyota.com/forum/index.php?">Forums</a></td]TuneMyToyota.com[/url]>
    <if condition="$show['registerbutton']">
    <td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
    </if>
    $template_hook[navbar_buttons_left]
    </if>
    <td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
    <if condition="$show['popups']">
    <if condition="$show['searchbuttons']">
    <if condition="$show['member']">
    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
    <else />
    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
    </if>
    <td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
    </if>
    <if condition="$show['member']">
    <td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
    </if>
    <else />
    <if condition="$show['searchbuttons']">
    <td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
    <if condition="$show['member']">
    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
    <else />
    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
    </if>
    </if>
    <td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
    <if condition="$show['member']">
    <td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_contacts]</a></td>
    </if>
    </if>
    $template_hook[navbar_buttons_right]
    <if condition="$show['member']">
    <td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
    </if>
    </tr>
    </table>
    </div>
    <!-- / nav buttons bar -->
    </br>
    <!-- content table -->
    $spacer_open
    $_phpinclude_output
    
    $welcomeheaders
     
  9. FullMetalBabe

    FullMetalBabe Zealot

    Joined:
    May 30, 2009
    Messages:
    2,912
    Likes Received:
    339
    The width would be in the CSS file, :P I forgot it was vB for a second there though.
     
  10. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    i dont understand...i didnt change anything...all i did was try moving that $spacer_open ??
     
  11. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    ok..i figured out that if I put $spacer_open anywhere but where it is it messes up the whole navabr... why?

    Right now its here...

    Code:
    <!-- /logo -->
    </br>
    $spacer_open
    <!-- nav buttons bar -->
     
  12. Yoshi

    Yoshi Regular Member

    Joined:
    Jun 9, 2005
    Messages:
    219
    Likes Received:
    11
    Location:
    UK
    Try replacing it with this;

    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="5" width="860" cellpadding="5" cellspacing="5" align="center">
    <tr>
    <td align="center"><a href="TuneMyToyota.com $session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    </tr>
    </table>
    <!-- /logo -->
    </br>
    <!-- nav buttons bar -->
    <div align="center">
    <div class="tborder" style="padding:$stylevar[cellspacing]px; border-top-width:0px">
    <table cellpadding="0" cellspacing="0" border="0" width="1025px" align="center">
    <tr align="center">
    <if condition="$show['member']">
    <td class="vbmenu_control"><a href="http://tunemytoyota.com?">Home</a></td>
    <td class="vbmenu_control"><a href="TuneMyToyota.com>
    <if condition="$show['registerbutton']">
    <td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
    </if>
    $template_hook[navbar_buttons_left]
    </if>
    <td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
    <if condition="$show['popups']">
    <if condition="$show['searchbuttons']">
    <if condition="$show['member']">
    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
    <else />
    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
    </if>
    <td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
    </if>
    <if condition="$show['member']">
    <td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
    </if>
    <else />
    <if condition="$show['searchbuttons']">
    <td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
    <if condition="$show['member']">
    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
    <else />
    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
    </if>
    </if>
    <td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
    <if condition="$show['member']">
    <td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_contacts]</a></td>
    </if>
    </if>
    $template_hook[navbar_buttons_right]
    <if condition="$show['member']">
    <td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
    </if>
    </tr>
    </table>
    </div>
    </div>
    <!-- / nav buttons bar -->
    </br>
    <!-- content table -->
    $spacer_open
    $_phpinclude_output
    
    $welcomeheaders
    
     
  13. Ak Worm

    Ak Worm Grand Master

    Joined:
    May 22, 2009
    Messages:
    979
    Likes Received:
    20
    First Name:
    Corey
    Put it before this line.
    HTML:
    <!-- /logo -->
     
  14. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    well...i dont know HOW i did it but i did,.. but now theres a strange two color line above my navabr now...LOL.. it looks kinda cool..but annoys me...

    uhhggg... the frustrating part is I have NO damn time anymore to do any figuring out...
     
  15. Mikey

    Mikey Mikeylicio.us

    Joined:
    Sep 12, 2009
    Messages:
    484
    Likes Received:
    92
    Location:
    United Kingdom
    What is in the "spacer_open" template?
     
  16. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    Oh man I don't know...I didn't even check...I'll look when I get home.
     
  17. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    no good.. nothings werkin.

    I'll try again on sunday, thanks guys!
     
  18. Ak Worm

    Ak Worm Grand Master

    Joined:
    May 22, 2009
    Messages:
    979
    Likes Received:
    20
    First Name:
    Corey
    *header logo*
    *navbar*
    *forum welcome box*
    *main page*
    --------------
    Theres no way to edit the navbar size. It goes with the tables. Maybe you images with links and names. Like some of the exaltic skins, you can use you own nav link image.
    --------------------
    Oh wait you want it to be in that order? I can work out something for ya :D
     
  19. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    Well I lost my internet for at least a week or so now so nuthins happnin for a while...

    I did get this to werk on my extremepixels skin but not on my default vbskinworks skin.... Hmmmmm
     
  20. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    so..i got this to work with my extremepixels skin...but i cant get it to work with my vbskinworks skin... what gives?
     

Share This Page