Announcement

Collapse
No announcement yet.

Center Logo

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

  • Center Logo

    How do I center the logo for 3.6 because after reverting my header template following the 3.5 method doesn't work because it says 'Not Found' when I search for stuff...

  • #2
    Admin CP -> Styles & Templates -> Style Manager -> Common Templates (in the menu) -> header

    Remove the red code:

    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <tr>
    	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    	<td align="$stylevar[right]">
    		&nbsp;
    	</td>
    </tr>
    </table>
    <!-- /logo -->
    
    <!-- content table -->
    $spacer_open
    
    $_phpinclude_output
    Then replace the blue code:

    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <tr>
    	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    </tr>
    </table>
    <!-- /logo -->
    
    <!-- content table -->
    $spacer_open
    
    $_phpinclude_output
    ...with the green code:

    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <tr>
    	<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    </tr>
    </table>
    <!-- /logo -->
    
    <!-- content table -->
    $spacer_open
    
    $_phpinclude_output

    Comment


    • #3
      When I design a style on 3.6.0, and want a centered header, all I do is change
      <td align="$stylevar[left]">
      to
      <td align="$stylevar[center]">
      and delete the

      <td align="$stylevar[right]">
      &nbsp;
      </td>
      It centers just fine for me
      Peggy
      ~ normal is overrated ~

      One Buzy Mama!

      Comment


      • #4
        I to wont to center my Logo.
        however i cant find <td align

        Code:
        <!-- logo -->
        <a name="top"></a>
        <div id="vbwrapper">
        <div id="logostrip"><a href="index.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/logostrip.gif" alt="" /></a></div>
        So if anyone could help me

        Comment


        • #5
          Your header has been modified. Try this:

          Code:
          <!-- logo -->
          <a name="top"></a>
          <div id="vbwrapper">
          <div align="center" id="logostrip"><a href="index.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/logostrip.gif" alt="" /></a></div>

          Comment


          • #6
            Mine says this
            How do I center mine and increase the size
            Its 3.6.2 version

            <!-- logo -->
            <a name="top"></a>
            <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
            <tr>
            <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
            <td align="$stylevar[right]">
            &nbsp;
            </td>
            </tr>
            </table>
            <!-- /logo -->
            <!-- content table -->
            $spacer_open
            $_phpinclude_output

            Comment


            • #7
              Originally posted by Jake Bunce View Post
              Your header has been modified. Try this:

              Code:
              <!-- logo -->
              <a name="top"></a>
              <div id="vbwrapper">
              <div align="center" id="logostrip"><a href="index.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/logostrip.gif" alt="" /></a></div>

              Worked like a Charm

              Comment


              • #8
                Originally posted by Catmostfeared View Post
                Mine says this
                How do I center mine and increase the size
                Its 3.6.2 version

                <!-- logo -->
                <a name="top"></a>
                <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
                <tr>
                <td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
                <td align="$stylevar[right]">
                &nbsp;
                </td>
                </tr>
                </table>
                <!-- /logo -->
                <!-- content table -->
                $spacer_open
                $_phpinclude_output
                Your template is default. Apply the code changes from my above post to center the logo.

                The size of the logo is determined by the size of the image itself.

                Comment


                • #9
                  what about if I wanted to add a advertising banner to the the left side of my Banner with its own link.

                  Comment


                  • #10
                    Add the purple code:

                    Code:
                    <!-- logo -->
                    <a name="top"></a>
                    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
                    <tr>
                    	<td align="left">
                    		<a href="LINK"><img src="path/to/banner.gif" alt="" border="0" /></a>
                    	</td>
                    	<td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
                    </tr>
                    </table>
                    <!-- /logo -->
                    
                    <!-- content table -->
                    $spacer_open
                    
                    $_phpinclude_output

                    Comment


                    • #11
                      awesome thanks heres a link
                      http://www.focusxtreme.com/forums/index.php

                      what if I wanted to use this banner,would I have to resize it or anything to
                      fit right?
                      http://www.thefocusconnection.com/ad...ss05302006.swf

                      Comment


                      • #12
                        That is a flash file. You need to use an embed tag:

                        Code:
                        <embed src="path/to/flash.swf" />

                        Comment


                        • #13
                          Ok thanks again

                          Comment


                          • #14
                            Center Banner, just what I was looking for!

                            Thank you it worked! I love your clear directions! No chance of screwing things up when it is explained so carefully!

                            Comment


                            • #15
                              thanks

                              bump.... should be a damn sticky!

                              Comment

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