Center Logo

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cooldude714
    Senior Member
    • Mar 2006
    • 111
    • 3.6.x

    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...
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #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>
    	[color=red]<td align="$stylevar[right]">
    		&nbsp;
    	</td>[/color]
    </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="[color=blue]$stylevar[left][/color]"><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="[color=green]center[/color]"><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

    • Ohiosweetheart
      Senior Member
      • Dec 2005
      • 1965
      • 3.8.x

      #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

      • JonV
        New Member
        • Apr 2005
        • 26

        #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

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

          #5
          Your header has been modified. Try this:

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

          Comment

          • Catmostfeared
            New Member
            • Oct 2006
            • 9

            #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

            • JonV
              New Member
              • Apr 2005
              • 26

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

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

              Worked like a Charm

              Comment

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

                #8
                Originally posted by Catmostfeared
                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

                • Catmostfeared
                  New Member
                  • Oct 2006
                  • 9

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

                  Comment

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

                    #10
                    Add the purple code:

                    Code:
                    <!-- logo -->
                    <a name="top"></a>
                    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
                    <tr>
                    	[color=purple]<td align="left">
                    		<a href="[color=blue]LINK[/color]"><img src="[color=blue]path/to/banner.gif[/color]" alt="" border="0" /></a>
                    	</td>[/color]
                    	<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

                    • Catmostfeared
                      New Member
                      • Oct 2006
                      • 9

                      #11
                      awesome thanks heres a link


                      what if I wanted to use this banner,would I have to resize it or anything to
                      fit right?

                      Comment

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

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

                        Code:
                        <embed src="[color=red]path/to/flash.swf[/color]" />

                        Comment

                        • Catmostfeared
                          New Member
                          • Oct 2006
                          • 9

                          #13
                          Ok thanks again

                          Comment

                          • Eytheril
                            New Member
                            • Dec 2006
                            • 2
                            • 3.6.x

                            #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

                            • deadhermitwalkin
                              New Member
                              • Jan 2007
                              • 3
                              • 3.6.x

                              #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...