Announcement

Collapse
No announcement yet.

Alignment off! AHHH!

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

  • Alignment off! AHHH!

    Ok I just did a teenie weenie bit of modding. But ive looked for a long time and CANT find the alignment issue!!!

    Ill go ahead and paste my modded sections.

    Here is my HEADER:

    Code:
    	<div align="center">
    <table cellpadding="0" cellspacing="0" border="0">
    <tr>
    	<td width="24" style="background: #2B1E0B url(images/misc/sidebar_left.gif);">
    	</td>
    
    	<td>
    
    <!-- content table --> 
    $spacer_open 
    
    <!-- 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 --> 
    
    $_phpinclude_output 
    $spacer_open
    Here is my FORUMHOME:

    Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
    	<!-- no cache headers -->
    	<meta http-equiv="Pragma" content="no-cache" />
    	<meta http-equiv="Expires" content="-1" />
    	<meta http-equiv="Cache-Control" content="no-cache" />
    	<!-- end no cache headers -->
    	<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
    	$headinclude
    </head>
    <body>
    $header
    $navbar
    
    <!-- news hack -->
    <table cellspacing="0" vpsace="0" hspace="0" border="0" width="100%">
    <tr valign="top">
    
    <!-- item 1 -->
    $newstables <a href="showthread.php?p=$newsthread[1]">$newstitle[1]</a>  $newstablem<div style="font-size:10px; font-family:Arial;">$newstext[1]</td></tr><tr><td class="alt2"><table border="0" cellspacing="0" width="100%" cellpading="0"><tr><td align="left"><font color="gray" size="-2">posted by $newsuser[1] on $newsdate[1]</font></td><td align="right"><font size="-2"><a href="showthread.php?p=$newsthread[1]">$newsreply[1] Comments</a></font></td></tr></table>$newstablee
    
    <!-- item 2 -->
    $newstables <a href="showthread.php?p=$newsthread[2]">$newstitle[2]</a>  $newstablem<div style="font-size:10px; font-family:Arial;">$newstext[2]</td></tr><tr><td class="alt2"><table border="0" cellspacing="0" width="100%" cellpading="0"><tr><td align="left"><font color="gray" size="-2">posted by $newsuser[2] on $newsdate[2]</font></td><td align="right"><font size="-2"><a href="showthread.php?p=$newsthread[2]">$newsreply[2] Comments</a></font></td></tr></table>$newstablee
    
    </tr><tr valign="top">
    <!-- item 3 -->
    $newstables <a href="showthread.php?p=$newsthread[3]">$newstitle[3]</a>  $newstablem<div style="font-size:10px; font-family:Arial;">$newstext[3]</td></tr><tr><td class="alt2"><table border="0" cellspacing="0" width="100%" cellpading="0"><tr><td align="left"><font color="gray" size="-2">posted by $newsuser[3] on $newsdate[3]</font></td><td align="right"><font size="-2"><a href="showthread.php?p=$newsthread[3]">$newsreply[3] Comments</a></font></td></tr></table>$newstablee
    
    <!-- item 4 -->
    $newstables <a href="showthread.php?p=$newsthread[4]">$newstitle[4]</a>  $newstablem<div style="font-size:10px; font-family:Arial;">$newstext[4]</td></tr><tr><td class="alt2"><table border="0" cellspacing="0" width="100%" cellpading="0"><tr><td align="left"><font color="gray" size="-2">posted by $newsuser[4] on $newsdate[4]</font></td><td align="right"><font size="-2"><a href="showthread.php?p=$newsthread[4]">$newsreply[4] Comments</a></font></td></tr></table>$newstablee
    
    </tr>
    </table>
    <!-- news hack -->
    
    <!-- main -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    	<if condition="$show['guest']">
    	<!-- guest welcome message -->
    	<tr>
    		<td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
    	</tr>
    	<tr>
    		<td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
    			<phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase>
    		</td>
    	</tr>
    	<!-- / guest welcome message -->
    </table>
    	</if>
    
    $forumbits
    
    <!-- /main -->
    
    <br />
    <br />
    
    <!-- what's going on box -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <thead>
    	<tr>
    		<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
    	</tr>
    </thead>
    <if condition="$show['loggedinusers']">
    <!-- logged-in users -->
    <tbody>
    	<tr>
    		<td class="thead" colspan="2">
    			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
    			<a href="online.php?$session[sessionurl]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
    		</td>
    	</tr>
    </tbody>
    <tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
    	<tr>
    		<td class="alt2"><a href="online.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
    		<td class="alt1" width="100%">
    			<div class="smallfont">
    				<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
    				<div>$activeusers</div>
    			</div>
    		</td>
    	</tr>
    </tbody>
    <!-- end logged-in users -->
    </if>
    <tbody>
    	<tr>
    		<td class="thead" colspan="2">
    			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
    			<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
    		</td>
    	</tr>
    </tbody>
    <tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
    	<tr>
    		<td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
    		<td class="alt1" width="100%">
    		<div class="smallfont">
    			<div>$vbphrase[threads]: $totalthreads, $vbphrase[posts]: $totalposts, $vbphrase[members]: $numbermembers</div>
    			<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
    		</div>
    		</td>
    	</tr>
    </tbody>
    <if condition="$show['birthdays']">
    <!-- today's birthdays -->
    <tbody>
    	<tr>
    		<td class="thead" colspan="2">
    			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
    			$vbphrase[todays_birthdays]
    		</td>
    	</tr>
    </tbody>
    <tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
    	<tr>
    		<td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
    		<td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
    	</tr>
    </tbody>
    <!-- end today's birthdays -->
    </if>
    <if condition="$show['upcomingevents']">
    <tbody>
    	<tr>
    		<td class="thead" colspan="2">
    			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
    			<if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
    		</td>
    	</tr>
    </tbody>
    <tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
    	<tr>
    		<td class="alt2"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
    		<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
    	</tr>
    </tbody>
    </if>
    
    <!--***************************************************************************-->
    <!-- DEVB ADDONS -->
    <!--***************************************************************************-->
    <if condition="$devbox_config['online_today']">
    <tbody>
    	<tr>
    		<td class="thead" colspan="2">
    			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('devbox_onlinetoday')"><img id="collapseimg_devbox_onlinetoday" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_devbox_onlinetoday].gif" alt="" border="0" /></a>
    			$vbphrase[devbox_onlinetoday]: $devbox[online_today_num] (<phrase 1="$devbox[online_today_max]" 2="$devbox[online_today_maxwhen]">$vbphrase[devbox_onlinetodaytime]</phrase>)
    		</td>
    	</tr>
    </tbody>
    <tbody id="collapseobj_devbox_onlinetoday" style="$vbcollapse[collapseobj_devbox_onlinetoday]">
    	<tr>
    		<td colspan="2" class="alt1">$devbox[online_today]</td>
    	</tr>
    </tbody>
    </if>
    
    <if condition="$devbox_config['latest_threads']">
    <tbody>
    	<tr>
    		<td class="thead" colspan="2">
    			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('devbox_recentthreads')"><img id="collapseimg_devbox_recentthreads" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_devbox_recentthreads].gif" alt="" border="0" /></a>
    			$vbphrase[devbox_latestthreads]
    		</td>
    	</tr>
    </tbody>
    <tbody id="collapseobj_devbox_recentthreads" style="$vbcollapse[collapseobj_devbox_recentthreads]">
    	<tr>
    		<td colspan="2" class="alt1">$devbox[latest_threads]</td>
    	</tr>
    </tbody>
    </if>
    
    <if condition="$devbox_config['top_posters']">
    <tbody>
    	<tr>
    		<td class="thead" colspan="2">
    			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('devbox_topposters')"><img id="collapseimg_devbox_topposters" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_devbox_topposters].gif" alt="" border="0" /></a>
    			$vbphrase[devbox_topposters]
    		</td>
    	</tr>
    </tbody>
    <tbody id="collapseobj_devbox_topposters" style="$vbcollapse[collapseobj_devbox_topposters]">
    	<tr>
    		<td colspan="2" class="alt1">$devbox[top_posters]</td>
    	</tr>
    </tbody>
    </if>
    
    <if condition="$devbox_config['newest_members']">
    <tbody>
    	<tr>
    		<td class="thead" colspan="2">
    			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('devbox_newestmembers')"><img id="collapseimg_devbox_newestmembers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_devbox_newestmembers].gif" alt="" border="0" /></a>
    			$vbphrase[devbox_newestmembers]
    		</td>
    	</tr>
    </tbody>
    <tbody id="collapseobj_devbox_newestmembers" style="$vbcollapse[collapseobj_devbox_newestmembers]">
    	<tr>
    		<td colspan="2" class="alt1">$devbox[newest_members]</td>
    	</tr>
    </tbody>
    </if>
    <!--***************************************************************************-->
    <!-- DEVB ADDONS -->
    <!--***************************************************************************-->
    
    </table>
    <br />
    <!-- end what's going on box -->
    
    <!-- icons and login code -->
    <table cellpadding="0" cellspacing="2" border="0" width="100%">
    <tr valign="bottom">
    	<td>
    		<table cellpadding="2" cellspacing="0" border="0">
    		<tr>
    			<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
    			<td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
    		</tr>
    		<tr>
    			<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
    			<td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
    		</tr>
    		<tr>
    			<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
    			<td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
    		</tr>
    		</table>
    	</td>
    	<if condition="!$show['guest']">
    		<!-- member logout -->
    		<td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]"  onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
    		<!-- end member logout -->
    	</if>
    </tr>
    </table>
    <!-- / icons and login code -->
    
    $footer
    </body>
    </html>
    Here is my 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> 
        <if condition="$show['quickchooser']"> 
            <td class="tfoot"> 
                <select name="styleid" id="ressel" onchange="switch_styleid(this)"> 
                    <optgroup label="$vbphrase[quick_style_chooser]"> 
                        $quickchooserbits 
                    </optgroup> 
                </select> 
            </td> 
        </if> 
        <td class="tfoot" align="$stylevar[right]"> 
            <div class="smallfont"> 
                <strong> 
    		<a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a> -
    		<a href="showgroups.php?$session[sessionurl]">$vbphrase[view_forum_leaders]</a> -
                    <a href="$vboptions[contactuslink]">$vbphrase[contact_us]</a> - 
                    <a href="$vboptions[homeurl]">$vboptions[hometitle]</a> - 
                    <if condition="$show['admincplink']"><a href="$admincpdir/index.php?$session[sessionurl]">$vbphrase[admin]</a> -</if> 
                    <if condition="$show['modcplink']"><a href="$modcpdir/index.php?$session[sessionurl]">$vbphrase[mod]</a> -</if> 
                    <if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if> 
                    <!-- - <a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> - --> 
                    <a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a> 
                </strong> 
            </div> 
        </td> 
    </tr> 
    </table> 
    
    <br /> 
    
    <div align="center"> 
        <div class="smallfont" align="center"> 
        <!-- Do not remove this copyright notice --> 
        $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>
    
    $spacer_close
    
    <if condition="$show['dst_correction']"> 
    <!-- auto DST correction code --> 
    <form action="profile.php" 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(); 
    
        // Initialize 'Active' Table Cells 
        //activecells_init(); 
    //--> 
    </script>
    
    	</td>
    
    	<td width="24" style="background: #2B1E0B url(images/misc/sidebar_right.gif);">
    	</td>
    </tr>
    </table>
    </div>
    I attached an image of the problem
    Attached Files

  • #2
    Without being able to work with the source code of the page, I can't be sure. But try removing the red code in your header:

    Code:
    	
    	
    	
    
    
    Code:
    	<div align="center">
    <table cellpadding="0" cellspacing="0" border="0">
    <tr>
    	<td width="24" style="background: #2B1E0B url(images/misc/sidebar_left.gif);">
    	</td>
    
    	<td>
    
    <!-- content table --> 
    $spacer_open 
    
    <!-- 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 --> 
    
    $_phpinclude_output 
    $spacer_open
    That should correct at least some of the problem.

    As for the rest of the problem... you have two $spacer variables in your header and footer. Try removing the outer ones.

    Comment


    • #3
      Nope, sadly that didnt change anything. But when I removed the outer spaces, it just left out my logo and there wasnt a background behind it. Grr I hate problems like this...

      Comment

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