Adjust banner ad to align

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LKJR
    Member
    • Nov 2004
    • 36

    Adjust banner ad to align

    I"d like to adjust the spot I"m putting in for banner ads to align with my logo and forum.

    code: (sorry don't know how to put it in the white box)

    <td align="right"><A HREF="mailto:[email protected]">
    <IMG SRC="http://www.architorture.org/forums/forrent.gif" BORDER="0" WIDTH="468" HEIGHT="60" ALT="Advertise Here!">


    screen capture here:
    www.architorture.org/upload/banneralign.jpg
    Last edited by LKJR; Tue 1 Feb '05, 1:26pm.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Edit this template:

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

    Move the red code as indicated:

    Code:
    [color=red]MOVE THE RED CODE HERE[/color]
    
    <!-- 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]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    	<td align="$stylevar[right]">
    		&nbsp;
    <!--
      NEW HEADER &amp; NAVBAR
      
      Now that the nav buttons are in the
      navbar template, you can stick whatever
      you like into this space.
    
      This makes it much easier for novice
      admins to customize their header
      template without affecting important
      navigation elements.
    -->
    	</td>
    </tr>
    </table>
    <!-- /logo -->
    
    [color=red]<!-- content table -->
    $spacer_open[/color]
    
    $_phpinclude_output
    That will place the title table within the same spacer as the rest of the forum which should line things up for you.

    Comment

    • LKJR
      Member
      • Nov 2004
      • 36

      #3
      I changed that but it pulled my logo and the banner in too far.

      www.architorture.org

      how do I adjust it so it so I just pull the banner to the left some?
      seems like I modified something one time for the logo to move slightly. like a _______"(1-10 figure here)"

      Comment

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

        #4
        Try adding this style tag to the IMG tag for the banner:

        Code:
        style="margin-right: 9px"
        Change the number to whatever you want.

        Comment

        • LKJR
          Member
          • Nov 2004
          • 36

          #5
          that fixes step 1 thanks, How about moving it up to align with the top?

          Comment

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

            #6
            In your header template, add 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]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
            	<td align="$stylevar[right]" [color=blue]valign="top"[/color]>
            		&nbsp;
            <!--
              NEW HEADER &amp; NAVBAR
              
              Now that the nav buttons are in the
              navbar template, you can stick whatever
              you like into this space.
            
              This makes it much easier for novice
              admins to customize their header
              template without affecting important
              navigation elements.
            -->
            	</td>
            </tr>
            </table>
            <!-- /logo -->
            
            <!-- content table -->
            $spacer_open
            
            $_phpinclude_output

            Comment

            • LKJR
              Member
              • Nov 2004
              • 36

              #7
              Just changed the $spacer_open to the top to adjust the text on the right side of the site www.architorture.org

              www.architorture.org (http://www.architorture.org) I've put links in the header table on the right. I&quot;d like to get them to line up with the line on the right side of the forums. &lt;!-- logo --&gt; &lt;a name=&quot;top&quot;&gt;&lt;/a&gt; &lt;table border=&quot;0&quot; width=&quot;$stylevar[outertablewidth]&quo


              here's what I have now in the header text. I'm happy with where the text on the right is now but the logo moved over. Need to get it back left and keep the text on the right where it's at.


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

              <a href="http:\\www.architorture.org">Home</a><br>
              <a href="<A href="http://www.architorture.org/forums/flashchat/flashchat.php">Chat</a><br">http://www.architorture.org/forums/flashchat/flashchat.php">Chat</a><br>
              <a href="http:\\webmail.architorture.org">E-mail</a><br>

              &nbsp;
              <!--
              NEW HEADER &amp; NAVBAR

              Now that the nav buttons are in the
              navbar template, you can stick whatever
              you like into this space.
              This makes it much easier for novice
              admins to customize their header
              template without affecting important
              navigation elements.
              -->
              </table>
              <!-- /logo -->

              $_phpinclude_output

              Comment

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

                #8
                You have added cellspacing to your header which is causing the problem:

                Code:
                <a name="top"></a>
                <table border="0" width="100%" cellpadding="0" cellspacing="[color=red]10[/color]" align="center">
                <tr>
                	<td align="left"><a href="index.php?"><img src="images/misc/logo3e.gif" border="0" alt="ArchiTorture.org" /></a></td>
                
                	<td align="right">
                
                
                <a href="http:\\www.architorture.org">Home</a><br>
                <a href="http://www.architorture.org/forums/flashchat/flashchat.php">Chat</a><br>
                <a href="http:\\webmail.architorture.org">E-mail</a><br>
                Set that to 0.

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...
                😀
                😂
                🥰
                😘
                🤢
                😎
                😞
                😡
                👍
                👎