Announcement

Collapse
No announcement yet.

new header problems

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • new header problems

    im having some problems with my new header template. It uses buttons with images instead of the standard vb navbar. If i erase the code for the old navbar the pop up links dont work any more. Can some one tell me what code i need ot move into the heaer template or whatever i need to do to get this to work?

    Heres my header code
    PHP Code:
    <HTML>
     <
    HEAD>
     <
    TITLE>ohnoes</TITLE>
     <
    META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
     </
    HEAD>
     <
    BODY BGCOLOR=#555555 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
     
    <!-- ImageReady Slices (ohnoes.gif) -->
     <
    TABLE WIDTH=1004 BORDER=0 CELLPADDING=0 CELLSPACING=0>
         <
    TR>
             <
    TD COLSPAN=0>
             <
    a href="$vboptions[forumhome].php?$session[sessionurl]">
                 <
    IMG SRC="images2/Main.gif" WIDTH=268 HEIGHT=32 ALT="" border=0></TD>
             <
    TD COLSPAN=10>
                 <
    IMG SRC="images2/ohnoes_02.gif" WIDTH=736 HEIGHT=32 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=1 HEIGHT=32 ALT=""></TD>
         </
    TR>
         <
    TR>
             <
    TD COLSPAN=3 ROWSPAN=2>
                 <
    IMG SRC="images2/ohnoes_03.gif" WIDTH=499 HEIGHT=41 ALT=""></TD>
             <
    TD COLSPAN=2>
             <
    a href="/subscriptions.php?">
                 <
    IMG SRC="images2/subscription.gif" WIDTH=96 HEIGHT=33 ALT="" border=0></TD>
             <
    TD>
             <
    a href="http://gallery.miscforums.com/">
                 <
    IMG SRC="images2/gallery.gif" WIDTH=72 HEIGHT=33 ALT="" border=0></TD>
             <
    TD>
             <
    a href="http://uploads.miscforums.com/">
                 <
    IMG SRC="images2/uploads.gif" WIDTH=72 HEIGHT=33 ALT=""border=0></TD>
             <
    TD id="usercptools">
             <
    a href="#usercptools">
                 <
    IMG SRC="images2/quicklinks.gif" WIDTH=89 HEIGHT=33 ALT=""border=0></TD>
             <
    TD  id="navbar_search">
             <
    a href="search.php?$session[sessionurl]">
                 <
    IMG SRC="images2/search.gif" WIDTH=64 HEIGHT=33 ALT="" border=0></TD>
             <
    TD>
             <
    a href="usercp.php?$session[sessionurl]">
                 <
    IMG SRC="images2/settings.gif" WIDTH=61 HEIGHT=33 ALT="" border=0></TD>
             <
    TD COLSPAN=2>
             <
    a href="faq.php?$session[sessionurl]">
                 <
    IMG SRC="images2/help.gif" WIDTH=51 HEIGHT=33 ALT="" border=0></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=1 HEIGHT=33 ALT=""></TD>
         </
    TR>
         <
    TR>
             <
    TD COLSPAN=9>
                 <
    IMG SRC="images2/ohnoes_11.gif" WIDTH=505 HEIGHT=8 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=1 HEIGHT=8 ALT=""></TD>
         </
    TR>
         <
    TR>
             <
    TD ROWSPAN=3>
                 <
    IMG SRC="images2/ohnoes_12.gif" WIDTH=32 HEIGHT=73 ALT=""></TD>
             <
    TD COLSPAN=2 ROWSPAN=2>
                 <
    IMG SRC="images2/ohnoes_13.gif" WIDTH=467 HEIGHT=64 ALT=""></TD>
             <
    TD ROWSPAN=3>
                 <
    IMG SRC="images2/ohnoes_14.gif" WIDTH=8 HEIGHT=73 ALT=""></TD>
             <
    TD COLSPAN=7>
                 <
    IMG SRC="images2/ohnoes_15.gif" WIDTH=468 HEIGHT=53 ALT=""></TD>
             <
    TD ROWSPAN=3>
                 <
    IMG SRC="images2/ohnoes_16.gif" WIDTH=29 HEIGHT=73 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=1 HEIGHT=53 ALT=""></TD>
         </
    TR>
         <
    TR>
             <
    TD COLSPAN=7 ROWSPAN=2>
                 <
    IMG SRC="images2/ohnoes_17.gif" WIDTH=468 HEIGHT=20 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=1 HEIGHT=11 ALT=""></TD>
         </
    TR>
         <
    TR>
             <
    TD COLSPAN=2>
                 <
    IMG SRC="images2/ohnoes_18.gif" WIDTH=467 HEIGHT=9 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=1 HEIGHT=9 ALT=""></TD>
         </
    TR>
         <
    TR>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=32 HEIGHT=1 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=236 HEIGHT=1 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=231 HEIGHT=1 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=8 HEIGHT=1 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=88 HEIGHT=1 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=72 HEIGHT=1 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=72 HEIGHT=1 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=89 HEIGHT=1 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=64 HEIGHT=1 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=61 HEIGHT=1 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=22 HEIGHT=1 ALT=""></TD>
             <
    TD>
                 <
    IMG SRC="images2/spacer.gif" WIDTH=29 HEIGHT=1 ALT=""></TD>
             <
    TD></TD>
         </
    TR>
     </
    TABLE>
     <!-- 
    End ImageReady Slices -->
     </
    BODY>
     </
    HTML>
     
    //13 and 15 are the banner images 

  • #2
    Your HTML isn't compliant with XHTML which is what vBulletin 3.x uses. Please keep the variables, phrases, etc that the navbar template uses. Just instead adapt the images and their links to point to the right variable. You can use the navbar template as an example.

    Comment


    • #3
      why wont this code work? I need help with taking my code and putting in what i need.

      Comment


      • #4
        That highlighted code has <!-- .. --> around it.
        Those are comment tags, everything inside those tags won't show up
        Remove
        <!--
        and
        -->
        to make it appear.

        Comment


        • #5
          wow thanks floris, cant believe i didnt notice that lol

          Comment


          • #6
            but now all the sizing is off........wtf

            Comment


            • #7
              Perhaps because the image is 32px high according to your code.

              Comment


              • #8
                yeah but i didnt change any of the sizes, all i did was add in the vb phrases and such to one image and it went all out of whack and i dont know why.

                Comment


                • #9
                  help?

                  Comment


                  • #10
                    Please wait at least 12 hours before bumping your posts. Thank you.
                    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
                    Change CKEditor Colors to Match Style (for 4.1.4 and above)

                    Steve Machol Photography


                    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


                    Comment


                    • #11
                      i was hoping to get this done tonight It seams its not displaying any of the size specifiactions(bolded code) <TD COLSPAN=0>
                      <td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]"><IMG SRC="images2/Main.gif" WIDTH=268 HEIGHT=32 ALT="" border=0></a></td>

                      Comment


                      • #12
                        how come this code works but it messes up all the alignment? Seeing what im trying to do, can some one help me out with the code?
                        Whered ya go Floris?
                        http://uploads.miscforums.com/main/1233.jpg

                        Comment


                        • #13
                          HTML Code:
                          <table width="100%" border="0" cellpadding="0" cellspacing="0">
                          	<tr>
                          		<td>
                          		<a href="$vboptions[forumhome].php?$session[sessionurl]">
                          			<img src="images2/main.gif" width="268" height="32" alt="" border="0" /></td>
                          		<td colspan="10">
                          			<img src="images2/ohnoes_02.gif" width="736" height="32" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="1" height="32" alt="" /></td>
                          	</tr>
                          	<tr>
                          		<td colspan="3" rowspan="2">
                          			<img src="images2/ohnoes_03.gif" width="499" height="41" alt="" /></td>
                          		<td colspan="2">
                          		<a href="/subscriptions.php?">
                          			<img src="images2/subscription.gif" width="96" height="33" alt="" border="0" /></td>
                          		<td>
                          		<a href="http://gallery.miscforums.com/">
                          			<img src="images2/gallery.gif" width="72" height="33" alt="" border="0" /></td>
                          		<td>
                          		<a href="http://uploads.miscforums.com/">
                          			<img src="images2/uploads.gif" width="72" height="33" alt="" border="0" /></td>
                          		<td id="usercptools">
                          		<a href="#usercptools">
                          			<img src="images2/quicklinks.gif" width="89" height="33" alt="" border="0" /></td>
                          		<td id="navbar_search">
                          		<a href="search.php?$session[sessionurl]">
                          			<img src="images2/search.gif" width="64" height="33" alt="" border="0" /></td>
                          		<td>
                          		<a href="usercp.php?$session[sessionurl]">
                          			<img src="images2/settings.gif" width=61 height="33" alt="" border="0" /></td>
                          		<td colspan="2">
                          		<a href="faq.php?$session[sessionurl]">
                          			<img src="images2/help.gif" width="51" height="33" alt="" border="0" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="1" height="33" alt="" /></td>
                          	</tr>
                          	<tr>
                          		<td colspan="9">
                          			<img src="images2/ohnoes_11.gif" width="505" height="8" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="1" height=8 alt="" /></td>
                          	</tr>
                          	<tr>
                          		<td rowspan="3">
                          			<img src="images2/ohnoes_12.gif" width="32" height="73" alt="" /></td>
                          		<td colspan="2" rowspan=2>
                          			<img src="images2/ohnoes_13.gif" width=467 height="64" alt="" /></td>
                          		<td rowspan="3">
                          			<img src="images2/ohnoes_14.gif" width=8 height="73" alt="" /></td>
                          		<td colspan="7">
                          			<img src="images2/ohnoes_15.gif" width=468 height="53" alt="" /></td>
                          		<td rowspan="3">
                          			<img src="images2/ohnoes_16.gif" width=29 height="73" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="1" height="53" alt="" /></td>
                          	</tr>
                          	<tr>
                          		<td colspan="7" rowspan="2">
                          			<img src="images2/ohnoes_17.gif" width="468" height="20" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="1" height="1" alt="" /></td>
                          	</tr>
                          	<tr>
                          		<td colspan="2">
                          			<img src="images2/ohnoes_18.gif" width="467" height="9" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="1" height="9" alt="" /></td>
                          	</tr>
                          	<tr>
                          		<td>
                          			<img src="images2/spacer.gif" width="32" height="1" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="236" height="1" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="231" height="1" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="8" height="1" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="88" height="1" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="72" height="1" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="72" height="1" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="89" height="1" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="64" height="1" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="61" height="1" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="22" height="1" alt="" /></td>
                          		<td>
                          			<img src="images2/spacer.gif" width="29" height="1" alt="" /></td>
                          	</tr>
                          </table>
                          From your above snipet i have gone though and standarized it for vBulletin, the javascript drop downs wont work untill you add the code to support them.

                          Comment


                          • #14
                            What code do i need ot add? Thats where im stuck. I add the code i think i need using the old navbar template as an example bu t i know im not doing it right. you seem to understand what imt rying to do. thanks for the code but i need another favor i dunno what code i need. Its basically just so i can make the dropdowns work for the quicklinks and search buttons.

                            I copied the code you gave me but now all the alignments are messed up, hwta happened?
                            Last edited by robb1; Fri 24 Dec '04, 7:43pm.

                            Comment

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