Edit Navbar

Discussion in 'vBulletin Discussions' started by BabyDesigner, Sep 9, 2009.

  1. Ak Worm

    Ak Worm Grand Master

    Joined:
    May 22, 2009
    Messages:
    979
    Likes Received:
    20
    First Name:
    Corey
    Yes, your header has its own coding, in the header template with the Nav Buttons coded in.
    So post your header template? So i can add the navbuttons the way you wanted...
     
  2. BabyDesigner

    BabyDesigner Adept

    Joined:
    Aug 24, 2009
    Messages:
    246
    Likes Received:
    6
    First Name:
    Meg
    HTML:
    <link type="text/css" rel="stylesheet" media="all" href="/forums/cometchat/css/cometchat.css" /> 
    <!-- logo -->
    <a name="top"></a>
    <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td class="headerwrap"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td class="headerL"></td>
    <td class="headerlogo"><div align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="http://www.tots-n-tums.net/forums/images/spacer.gif" alt="$vboptions[bbtitle]" width="530" height="141" border="0"/></a></div></td>
    <td class="headerR"></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td class="navwrap">
    <!-- nav buttons bar -->
    <div id="navstyle" 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><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
    </if>
    <if condition="$show['registerbutton']">
    <td><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
    </if>
    $template_hook[navbar_buttons_left]
    <td><a rel="help" href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
    <if condition="$show['communitylink'] AND $show['popups']">
    <td><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6">$vbphrase[community]</a> <script type="text/javascript"> vbmenu_register("community"); </script></td>
    <else />
    <if condition="$show['memberslist']">
    <td><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
    </if>
    <if condition="$show['quick_links_groups']">
    <td><a href="group.php?$session[sessionurl]">$vbphrase[social_groups]</a></td>
    </if>
    </if>
    <td><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
    <if condition="$show['popups']">
    <if condition="$show['searchbuttons']">
    <if condition="$show['member']">
    <td><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
    <else />
    <td><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
    </if>
    <td><a id="navbar_search" 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><a id="usercptools" 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><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
    <if condition="$show['member']">
    <td><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
    <else />
    <td><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
    </if>
    </if>
    <td><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
    <if condition="$show['member']">
    <td><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><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 --></td>
    </tr>
    <tr>
    <td valign="top" class="cwrap">
    <!-- /logo -->
    <!-- content table -->
    $spacer_open
    $_phpinclude_output
    $ad_location[ad_header_end]
     
  3. Ak Worm

    Ak Worm Grand Master

    Joined:
    May 22, 2009
    Messages:
    979
    Likes Received:
    20
    First Name:
    Corey
    Place this back in the navbar template, Sorry
    HTML:
    <br />
    
    <!-- breadcrumb, login, pm info -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
    <td class="alt1" width="100%">
    <if condition="is_array($navbits)">
    <table cellpadding="0" cellspacing="0" border="0">
    <tr valign="bottom">
    <td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
    <td></td>
    <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
    </tr>
    <tr>
    <td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="" border="0" /><else /><a href="$navbar_reloadurl"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
    </tr>
    </table>
    <else />
    <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
    </if>
    </td>
    <if condition="$show['member']">
    <td class="alt2" nowrap="nowrap">
    <div class="smallfont">
    <strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
    <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
    
    <if condition="$show['notifications']">
    <div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
    <if condition="$show['popups']">
    <script type="text/javascript"> vBmenu.register("notifications"); </script>
    <else />
    <script type="text/javascript" src="clientscript/vbulletin_notifications_nopopups.js?v=$vboptions[simpleversion]"></script>
    <script type="text/javascript"> vBulletin.register_control("vB_Notifications_NoPopups", "notifications");  </script>
    </if>
    <else /><if condition="$show['pmstats']">
    <div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
    </if></if>
    
    <if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
    </div>
    </td>
    <else />
    <td class="alt2" nowrap="nowrap" style="padding:0px">
    <!-- login form -->
    <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
    <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
    <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
    <tr>
    <td class="smallfont" style="white-space: nowrap;"><label for="navbar_username">$vbphrase[username]</label></td>
    <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
    <td class="smallfont" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
    </tr>
    <tr>
    <td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
    <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
    <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
    </tr>
    </table>
    <input type="hidden" name="s" value="$session[sessionhash]" />
    <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
    <input type="hidden" name="do" value="login" />
    <input type="hidden" name="vb_login_md5password" />
    <input type="hidden" name="vb_login_md5password_utf" />
    </form>
    <!-- / login form -->
    </td>
    </if>
    </tr>
    </table>
    <!-- / breadcrumb, login, pm info -->
    
    Now heres the header
    HTML:
    <link type="text/css" rel="stylesheet" media="all" href="/forums/cometchat/css/cometchat.css" /> 
    <!-- logo -->
    <a name="Tots-N-Tums"></a>
    <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td class="headerwrap"><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td class="headerL"></td>
    <td class="headerlogo"><div align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="http://www.tots-n-tums.net/forums/images/spacer.gif" alt="$vboptions[bbtitle]" width="530" height="141" border="0"/></a></div></td>
    <td class="headerR"></td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td class="navwrap">
    <!-- 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">
    <td class="vbmenu_control"><a href="http://www.tots-n-tums.net">Home</a></td>
    <td class="vbmenu_control"><a href="/forums">Forums</a></td>
    <if condition="$show['member']">
    <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
    </if>
    <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]
    <td class="vbmenu_control"><a rel="help" href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</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 class="vbmenu_control"><a id="navbar_search" 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 class="vbmenu_control"><a id="usercptools" 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 --></td>
    </tr>
    <tr>
    <td valign="top" class="cwrap">
    <!-- /logo -->
    <!-- content table -->
    $spacer_open
    $_phpinclude_output
    $ad_location[ad_header_end]
    Lets see how that works :D
     
  4. BabyDesigner

    BabyDesigner Adept

    Joined:
    Aug 24, 2009
    Messages:
    246
    Likes Received:
    6
    First Name:
    Meg
    Okeys, that kind of worked lol :)

    Just some how need to make it look like its supposed to be there, if you know what I mean?
     
  5. Ak Worm

    Ak Worm Grand Master

    Joined:
    May 22, 2009
    Messages:
    979
    Likes Received:
    20
    First Name:
    Corey
    It did work, i can see it... :)
     
  6. BabyDesigner

    BabyDesigner Adept

    Joined:
    Aug 24, 2009
    Messages:
    246
    Likes Received:
    6
    First Name:
    Meg
    Yep it did :) thank you very much!
     
  7. Ak Worm

    Ak Worm Grand Master

    Joined:
    May 22, 2009
    Messages:
    979
    Likes Received:
    20
    First Name:
    Corey
    You added the Login/Breadcrumb PM info? i dont see a private messages thing below the last visit date.
     
  8. BabyDesigner

    BabyDesigner Adept

    Joined:
    Aug 24, 2009
    Messages:
    246
    Likes Received:
    6
    First Name:
    Meg
    Probably coz I have PMs disabled for members that have less than a certain amount of posts? I can see it on my forum :)

    Is there a way to edit the background to the new navbar? Either to get rid of the white background and finish the border, or to get rid of the border and green background?
     
  9. Ak Worm

    Ak Worm Grand Master

    Joined:
    May 22, 2009
    Messages:
    979
    Likes Received:
    20
    First Name:
    Corey
    Sorry i dont know much CSS, i mainly code. :) But if you would want to change it, you
    would have to edit the Main CSS and it would change the look of the whole foum.
    Oh and um, your welcome for the new navbar:D
     
  10. BabyDesigner

    BabyDesigner Adept

    Joined:
    Aug 24, 2009
    Messages:
    246
    Likes Received:
    6
    First Name:
    Meg
    I just took the header one away, and put the navbar in..looks a bit better, wish I could get rid of the big white space under the logo now though..
     
  11. Ak Worm

    Ak Worm Grand Master

    Joined:
    May 22, 2009
    Messages:
    979
    Likes Received:
    20
    First Name:
    Corey
    Which space? I dont really see one. But i can help later on, im off to school now.
     
  12. BabyDesigner

    BabyDesigner Adept

    Joined:
    Aug 24, 2009
    Messages:
    246
    Likes Received:
    6
    First Name:
    Meg
    Its gone now :) i took away the space code and it disappeared. Thanks again for all you help! Have fun at school
     
  13. David

    David Regular Member

    Joined:
    May 30, 2003
    Messages:
    1,088
    Likes Received:
    133
    Location:
    Australia
    3 pages to fix a navbar issue :lol:
     
  14. Ak Worm

    Ak Worm Grand Master

    Joined:
    May 22, 2009
    Messages:
    979
    Likes Received:
    20
    First Name:
    Corey
    Wasnt really an issue, if i had admincp access, it would have been done right away;)
     
  15. BabyDesigner

    BabyDesigner Adept

    Joined:
    Aug 24, 2009
    Messages:
    246
    Likes Received:
    6
    First Name:
    Meg
    Lol i know, pretty silly huh im usually good with this, if i knew the location and what was going on but none of the codes that should have been there weren't and that stumped me. Oh well its all done now :)
     

Share This Page