Moving Nav Bar/Buttons

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • djroketboy
    Member
    • Apr 2003
    • 40

    Moving Nav Bar/Buttons

    Hey i've sucsesfully moved my nav bar menu, but now am finding that the logout isn't working correctly...

    is there something i'm missing?
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Not working as in what? What is it doing? Maybe you forgot to move the the javascript with the rest of the code?

    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;
    	}
    	else
    	{
    		ht[0].style.filter = "";
    		return false;
    	}
    }
    //-->
    </script>

    Comment

    • djroketboy
      Member
      • Apr 2003
      • 40

      #3
      yeah when i moved that with it, i get a script error in IE, but not in Firefox or Opera

      i also just noticed that when logged out, the "register" option is not their either... so i must have something set wrong....

      am i supposed to move everything out of the navbar template except the <!-- breadcrumb, login, pm info --> info?

      Comment

      • Zachery
        Former vBulletin Support
        • Jul 2002
        • 59097

        #4
        You also need to move the dropdowns bits into the header template as well.

        Comment

        • djroketboy
          Member
          • Apr 2003
          • 40

          #5
          ok all moved... now i noticed, when you hover over the logout here, it has do=logout&u=(userid)

          mine just has the do=logout

          but i never changed that line when bringing it over to the header template, also the same with the register link... i just copied it strait from the navbar template...

          Comment

          • djroketboy
            Member
            • Apr 2003
            • 40

            #6
            this is what i have:
            Code:
            <a name="top"></a>
            <table width="100%"  border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="59%" align="left" valign="top" background="/images/misc/header/sliver.jpg"><img src="/images/misc/header/left.jpg" width="383" height="92"></td>
                <td width="41%" align="right" background="/images/misc/header/sliver.jpg"><img src="/images/misc/header/right.jpg" width="383" height="92"></td>
              </tr>
              <tr>
                <td colspan="2"><table width="100%"  border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="81%" align="left" background="/images/misc/header/textbg.jpg"><!-- NAVBAR -->
                        <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
                          <tr align="center">
                            <td align="left"><img src="/images/misc/header/lefttext.jpg" width="85" height="18"></td>
                            <td nowrap class="vbmenu_control"><a href="/index.html">Site Home</a></td>
                            <td nowrap class="vbmenu_control"><a href="/$vboptions[forumhome].php?$session[sessionurl]">Forum Home</a></td>
                            <if condition="$show['member']">
                            <td class="vbmenu_control"><a href="/usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a></td>
                            </if> <if condition="$show['registerbutton']">
                            <td class="vbmenu_control"><a href="/register.php?$session[sessionurl]">$vbphrase[register]</a></td>
                            </if>
                            <td class="vbmenu_control"><a href="/garage.php?$session[sessionurl]do=list">$vbphrase[vbgarage]</a></td>
                            <td class="vbmenu_control"><a href="/classifieds/index.php?$session[sessionurl]">Classifieds</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]" accesskey="4">$vbphrase[search]</a>
                              <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
                            </if> <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> <else /> <if condition="$show['searchbuttons']">
                            <td class="vbmenu_control"><a href="/search.php?$session[sessionurl]" 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">$vbphrase[mark_forums_read]</a></td>
                            <if condition="$bbuserinfo['userid']">
                            <td class="vbmenu_control"><a href="#" onclick="window.open('/misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,  toolbar=no,scrollbars=yes,resizable=yes,width=250,  height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
                            </if> </if> <if condition="$bbuserinfo['userid']">
                            <td class="vbmenu_control"><a href="/login.php?$session[sessionurl]do=logout" onclick="return log_out()">$vbphrase[log_out]</a></td>
                            </if> </tr>
                        </table></td>
                      <!-- END NAVBAR -->
                      <td width="19%" align="right" background="/images/misc/header/textbg.jpg"><img src="/images/misc/header/righttext.jpg" width="103" height="18"></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td align="left" valign="top" nowrap background="/images/misc/header/textbg2.jpg"><img src="/images/misc/header/leftshadow.jpg" width="85" height="4"></td>
                <td colspan="2" align="right" background="/images/misc/header/textbg2.jpg" valign="top"><img src="/images/misc/header/rightshadow.jpg" width="103" height="4"></td>
              </tr>
            </table>
            <!-- nav buttons bar -->
            <!-- / nav buttons bar -->
            <br />
            <br />
            <if condition="$show['popups']">
            <!-- NAVBAR POPUP MENUS -->
            <if condition="$show['searchbuttons']">
            <!-- header quick search form -->
            <div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
              <table cellpadding="4" cellspacing="1" border="0">
                <tr>
                  <td class="thead">$vbphrase[search_forums]</td>
                </tr>
                <tr>
                  <td class="vbmenu_option" title="nohilite"><form action="search.php" method="post">
                      <input type="hidden" name="do" value="process" />
                      <input type="hidden" name="showposts" value="0" />
                      <input type="text" class="bginput" name="query" size="20" />
                      $gobutton<br />
                    </form></td>
                </tr>
                <tr>
                  <td class="vbmenu_option"><a href="/search.php?$session[sessionurl]" accesskey="4">$vbphrase[advanced_search]</a></td>
                </tr>
              </table>
            </div>
            <!-- / header quick search form -->
            </if> <if condition="$show['member']">
            <!-- user cp tools menu -->
            <div class="vbmenu_popup" id="usercptools_menu" style="display:none">
              <table cellpadding="4" cellspacing="1" border="0">
                <tr>
                  <td class="thead">$vbphrase[quick_links]</td>
                </tr>
                <if condition="$vboptions['enablesearches']">
                <tr>
                  <td class="vbmenu_option"><a href="/search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav]</a></td>
                </tr>
                </if>
                <tr>
                  <td class="vbmenu_option"><a href="/forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td>
                </tr>
                <tr>
                  <td class="vbmenu_option"><a href="#" onclick="window.open('/misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
                </tr>
                <tr>
                  <td class="thead"><a href="/usercp.php?$session[sessionurl]">$vbphrase[user_control_panel]</a></td>
                </tr>
                <if condition="$show['siglink']">
                <tr>
                  <td class="vbmenu_option"><a href="/profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td>
                </tr>
                </if> <if condition="$show['avatarlink']">
                <tr>
                  <td class="vbmenu_option"><a href="/profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td>
                </tr>
                </if>
                <tr>
                  <td class="vbmenu_option"><a href="/profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td>
                </tr>
                <tr>
                  <td class="vbmenu_option"><a href="/profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td>
                </tr>
                <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>
                <tr>
                  <td class="vbmenu_option"><a href="/memberlist.php?$session[sessionurl]">$vbphrase[members_list]</a></td>
                </tr>
                <tr>
                  <td class="vbmenu_option"><a href="/faq.php?$session[sessionurl]" accesskey="5">$vbphrase[faq]</a></td>
                </tr>
                <tr>
                  <td class="vbmenu_option"><a href="/calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
                </tr>
                </if>
              </table>
            </div>
            <!-- / user cp tools menu -->
            </if>
            <!-- / NAVBAR POPUP MENUS -->
            </if>

            Comment

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

              #7
              What is the URL to your forum? I want to see the error.

              Comment

              • djroketboy
                Member
                • Apr 2003
                • 40

                #8
                bah.. Jake, the error is rearing it's head now that i moved it to my main site....


                it only does it when using IE 6

                Comment

                • djroketboy
                  Member
                  • Apr 2003
                  • 40

                  #9
                  nevermind, fixed it... i fogot the code you posted above!

                  again, thanks for your help

                  Comment

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