Announcement

Collapse
No announcement yet.

center banner

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

  • center banner

    How do i center a banner on my forums?

    you can see what i mean by going here, www.WarpedGamers.com/forums

    I went to this thread but my code is different... Here is my code for those catigorys...

    header -
    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <tr>
        <td background="images/dark_vb/misc/header_repeat.gif" width="100%" height="27" colspan="2" valign="top">&nbsp;</td>
    </tr>
    <tr>
     <td  background="images/dark_vb/misc/dark_vb_bg.gif" width="100%" height="124" valign="top" 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
    header include -
    Code:
    <meta name="keywords" content="$threadinfo[title], $vboptions[keywords]" />
    <meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />
    <else />
     <if condition="$show['foruminfo']">
    <meta name="keywords" content="$foruminfo[title_clean], $vboptions[keywords]" />
    <meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
     <else />
    <meta name="keywords" content="$vboptions[keywords]" />
    <meta name="description" content="$vboptions[description]" />
     </if>
    </if>
    <!-- CSS Stylesheet -->
    $style[css]
    <if condition="is_browser('opera') AND !is_browser('opera', '8.0.1')">
    <style type="text/css">
    ul, ol { padding-left:20px; }
    </style>
    </if>
    <!-- / CSS Stylesheet -->
    <script type="text/javascript">
    <!--
    var SESSIONURL = "$session[sessionurl_js]";
    var IMGDIR_MISC = "$stylevar[imgdir_misc]";
    var vb_disable_ajax = parseInt("$vboptions[disable_ajax]", 10);
    // -->
    </script>
    <script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
    <if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js?v=$vboptions[simpleversion]"></script></if>
    <if condition="$vboptions['externalrss']">
    <link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS2" />
    <if condition="$show['foruminfo'] OR $show['threadinfo']">
    <link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&amp;forumids=$foruminfo[forumid]" />
    </if>
    </if>

    footer -
    Code:
    br />
    <div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
    <br />
    $spacer_close
    <!-- /content area table -->
    <form action="$vboptions[forumhome].php" method="get">
     
    <table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
    <tr>
    <td><div align="center">
     <div class="smallfont" align="center">
     <!-- Do not remove this copyright notice -->
            Design by <a href="<A href="http://www.vbulletin.org/forum/member.php?u=68767">unenergizer</a">http://www.vbulletin.org/forum/member.php?u=68767">unenergizer</a>.  (C) <a href="<A href="http://www.gamehaxs.com/">gameHAXS.com</a">http://www.gamehaxs.com/">gameHAXS.com</a> 2006.<br>
     $vbphrase[powered_by_vbulletin]
     <!-- Do not remove this copyright notice -->
     </div>
     
     <div class="smallfont" align="center">
     <!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
     $cronimage
     <!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
     
     $vboptions[copyrighttext]
     </div>
    </div>
    </form>
    </td>
    </tr>
    <tr>
     <if condition="$show['quickchooser']">
      <td class="tfoot">
       <select name="styleid" onchange="switch_id(this, 'style')">
        <optgroup label="$vbphrase[quick_style_chooser]">
         $quickchooserbits
        </optgroup>
       </select>
      </td>
     </if>
     <if condition="$show['languagechooser']">
      <td class="tfoot">
       <select name="langid" onchange="switch_id(this, 'lang')">
        <optgroup label="$vbphrase[quick_language_chooser]">
         $languagechooserbits
        </optgroup>
       </select>
      </td>
     </if>
     <td class="tfoot" align="$stylevar[right]" width="100%">
      <div class="smallfont">
       <strong>
        <if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
        <if condition="$vboptions['hometitle']"><a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -</if>
        <if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
        <if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
        <if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
        <if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
        <a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
       </strong>
      </div>
     </td>
    </tr>
    </table>
    <if condition="$show['dst_correction']">
    <!-- auto DST correction code -->
    <form action="profile.php?do=dst" method="post" name="dstform">
     <input type="hidden" name="s" value="$session[sessionhash]" />
     <input type="hidden" name="do" value="dst" />
    </form>
    <script type="text/javascript">
    <!--
     var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
     var utcOffset = new Date().getTimezoneOffset() / 60;
     if (Math.abs(tzOffset + utcOffset) == 1)
     { // Dst offset is 1 so its changed
      document.forms.dstform.submit();
     }
    //-->
    </script>
    <!-- / auto DST correction code -->
    </if>
    <script type="text/javascript">
    <!--
     // Main vBulletin Javascript Initialization
     vBulletin_init();
    //-->
    </script>
    Last edited by Synda; Sat 23rd Dec '06, 4:18pm.

  • #2
    anyone?

    Comment


    • #3
      <div align=center>BANNER CODE</div>

      This will center the banner and only the banner but is you leave off the closing</div> everything will center until it see the next closing statment.

      Comment

      Loading...
      Working...
      X