Footer always on bottom

Discussion in 'Programming' started by sashi_vbulletin3_import7184, Jul 2, 2009.

  1. Hey friends,

    I've got a little problem: The footer isn't always on the botton of the forum. But i want the footer to always stick on the bottom of the page!

    A screenshot:
    [​IMG]
    Click on the image to view in full size.

    I tried desperately to put the footer on the bottom, but i can't get it to work!
    Here's my footer code:
    HTML:
    $ad_location[ad_footer_start]
    <br /><br />
    <div align="center">
        <div class="smallfont" align="center">
        <!-- Do not remove this copyright notice -->
       Powered by vBulletin®<br />
    <div class="spacer"></div>
    <if condition="in_array(THIS_SCRIPT, array(index))"><a href="http://validator.w3.org/check?uri=referer"><img
            src="$stylevar[imgdir_misc]/w3cxhtml.gif"
            alt="Valid XHTML 1.0 Transitional" border="0" /></a> <a href="http://jigsaw.w3.org/css-validator/check/referer ">
      <img src="$stylevar[imgdir_misc]/w3ccss.gif" alt="Valid CSS!"  border="0" />
    </a></if>
        <!-- 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>
    <br />
    $spacer_close
    <!-- /content area table -->
    
    <form action="$vboptions[forumhome].php" method="get" style="clear:$stylevar[align=left]">
    
    <table  height="100%" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
    <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[align=right]" width="100%">
            <div class="smallfont">
                <strong>
                    <if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow" accesskey="9">$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>
                    $template_hook[footer_links]
                    <if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
                    <if condition="$vboptions[tosurl]"><a href="$vboptions[tosurl]">$vbphrase[terms_of_service]</a> -</if>
                    <a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
                </strong>
            </div>
        </td>
    
    
    </tr>
    
    </form>
    </td>
    </tr>
    </table>
    $ad_location[ad_footer_end]
    
    <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="securitytoken" value="$bbuserinfo[securitytoken]" />
        <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>
    Maybe the problem isn't even in the footer...
    I hope someone can find a solution!


    Greetings,
    Sasha
     

Share This Page