2 replies [Last post]
oneeezy
oneeezy's picture
Offline
Enthusiast
Beaumont, TX
Last seen: 6 years 2 weeks ago
Beaumont, TX
Timezone: GMT-5
Joined: 2009-11-18
Posts: 98
Points: 128

Hi, I've been creating a forum website and had 2 forums up for testing purposes and I went to add a third and fourth last night and it threw the bottom part all out of wack.....

see here:
http://www.phone7forum.com/

Keep in mind that the forum website is built w/ php, and there are many included files..
-header
-index
-sidebar
-forumlist_body
-footer

The page that is throwing my index page off is the forumlist_body, the way the forumlist_body works is that it starts with and right underneath displays this code:

	<!-- IF (forumrow.S_IS_CAT and not forumrow.S_FIRST_ROW) or forumrow.S_NO_CAT  -->
 
			</div>
 
 		 <div class="forumlist-bottom">
         <div class="forumlist-bottom-left"></div>
         <div class="forumlist-bottom-right">
 
         <!-- IF S_HAS_SUBFORUM -->
                <!-- IF not S_IS_BOT and U_MARK_FORUMS -->
                    <a href="{U_MARK_FORUMS}"><img src="/images/button_forumsread.png" alt="Mark Forums Read" class="forumlist-post-reply" /></a>
            	<!-- ENDIF -->
         <!-- ENDIF -->         
 
         </div>
         </div>
 
  </div> <!-- end forumlist-post -->
  </div> <!-- end forumlist-content -->
 
	<!-- ENDIF -->

That code goes at the end of the forum loop to close all of the tags that were opened inside the loop.. I wanted to explain that to whoever might help me because that was a big issue i was having when making it. Ok, I know that I have 106 errors according to the html validator (i know! i know!) Most are caused by the tables im using because I don't have the proper child elements inside the tables... But the tables are not whats throwing my forum off. I believe its the "closing DIV tags" that the html validator told me I had inside forumlist_body. It actually says that the "closed DIV tags" are in the forumlist_body and the footer, but the problem doesn't exist in the footer.. its definitely in the forumlist body because all of my other pages are doing fine Wink

Ok, so here's the main html for the Forumlist_body:

	<div class="forumlist-content">
    <div class="forumlist-post">
 
		<h1>Windows Phone 7 Forum</h1>
 
		<div class="forumlist-blue-bg">
 
        </div>
 
 
	<div class="forumlist-post-inner">
   	<div class="forumlist-post-outter">
 
		<script type="text/javascript"><!--
        google_ad_client = "ca-pub-8101342891950719";
        /* Phone7Forum (Leaderboard) */
        google_ad_slot = "5313180766";
        google_ad_width = 728;
        google_ad_height = 90;
        //-->
        </script>
        <script type="text/javascript"
        src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
        </script>
 
    </div> <!-- end post_outter -->  
    </div> <!-- end post_inner -->
 
 
 		 <div class="forumlist-bottom">
         <div class="forumlist-bottom-left"></div>
         <div class="forumlist-bottom-right">
         </div>
         </div>
 
 
 
 
</div> <!-- end post -->
</div> <!-- content -->    
 
 
 
<!-- BEGIN forumrow -->
	<!-- IF (forumrow.S_IS_CAT and not forumrow.S_FIRST_ROW) or forumrow.S_NO_CAT  -->
 
			</div>
 
 		 <div class="forumlist-bottom">
         <div class="forumlist-bottom-left"></div>
         <div class="forumlist-bottom-right">
 
         <!-- IF S_HAS_SUBFORUM -->
                <!-- IF not S_IS_BOT and U_MARK_FORUMS -->
                    <a href="{U_MARK_FORUMS}"><img src="/images/button_forumsread.png" alt="Mark Forums Read" class="forumlist-post-reply" /></a>
            	<!-- ENDIF -->
         <!-- ENDIF -->         
 
         </div>
         </div>
 
  </div> <!-- end forumlist-post -->
  </div> <!-- end forumlist-content -->
 
	<!-- ENDIF -->
 
	<!-- IF forumrow.S_IS_CAT or forumrow.S_FIRST_ROW  or forumrow.S_NO_CAT  -->
 
    <div class="forumlist-content">	
    <div class="forumlist-post">
 
		<h2><!-- IF forumrow.S_IS_CAT -->
        {forumrow.FORUM_NAME}<!-- ELSE -->{FORUM_NAME}
        <!-- ENDIF --></h2>
 
 
        <!-- IF S_HAS_SUBFORUM -->
                <!-- IF not S_IS_BOT and U_MARK_FORUMS -->
                    <a href="{U_MARK_FORUMS}"><img src="/images/button_forumsread.png" alt="Mark Forums Read" class="forumlist-post-reply" /></a>
            	<!-- ENDIF -->
        <!-- ENDIF -->
 
 
 
		<div class="forumlist-blue-bg">
 
        	<div class="forumlist-div-topics"> <!-- /////// TOPIC CATEGORIRES START /////// -->
                                <div class="forumlist-divinner-topics">FORUM</div>
                                <div class="forumlist-divinner-replies">TOPICS</div>	
                                <div class="forumlist-divinner-views">POSTS</div>
                                <div class="forumlist-divinner-lastpost">LAST POST</div>
                    </div> <!-- /////////////////////////////////////// TOPIC CATEGORIRES END /////// -->
 
        </div>
	<!-- ENDIF -->
 
	<!-- IF not forumrow.S_IS_CAT -->
 
	<div class="forumlist-post-inner">
   	<div class="forumlist-post-outter">
 
                     <table class="forumlist-table-main"> <!-- ////// forumlist MAIN TABLE START /////// -->
                        <thead class="forumlist-table-head-main">
                            <tr class="forumlist-table-row-main">
                                <th width="51%" class="forumlist-cell-maintopics">
 
                                    <table class="forumlist-table-topics-main"> <!-- // TOPIC TABLE START // -->
                                        <thead class="forumlist-table-topics-main-head">
                                            <tr>
                                                <th rowspan="2" class="forumlist-cell-maintopics-icon">
 
                                                </th>
                                                <th colspan="2" class="forumlist-cell-maintopics-title"><h3><a href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a></h3></th>
                                            </tr>
					                        <tr>
                                                <th class="forumlist-cell-maintopics-info"><span>{forumrow.FORUM_DESC}</span>
                                                </th>
                                            </tr>
                                        </thead>
                                    </table> <!-- ////////////////////////////////// TOPIC TABLE END // -->       
 
 
                          </th>
 
                          <!-- IF forumrow.CLICKS -->
                          		<th width="49%" class="forumlist-cell-redirects">
                                	<!-- IF U_ACP --><span>{L_REDIRECTS}: {forumrow.CLICKS}</span><!-- ENDIF -->
                                </th>
 
						  <!-- ELSEIF not forumrow.S_IS_LINK -->
                                <th width="9%" class="forumlist-cell-mainreplies">
                                	<span class="bold">{forumrow.TOPICS}</span>
                                </th>	
                                <th width="9%" class="forumlist-cell-mainviews"><span class="bold">{forumrow.POSTS}</span></th>
                                <th width="31%" class="forumlist-cell-mainlastpost">
 
 
 
 
 
 
                                    <table class="forumlist-table-lastpost-main"> <!-- // MAIN LASTPOST TABLE START // -->
                                        <thead class="forumlist-table-lastpost-main-head">
                                        	<tr>
                                            	<!-- IF forumrow.LAST_POST_TIME -->
					                          	<th class="forumlist-cell-lastpost-info">
                                                By <span class="forumlist-lastpost">{forumrow.LAST_POSTER_FULL}</span>
                                                </th>
                                            </tr>
                                            <tr>
 
                                                <th class="forumlist-cell-lastpost-title">
                                                <span class="forumlist-date-time">{forumrow.LAST_POST_TIME}&nbsp;
                                                <!-- IF not S_IS_BOT -->
                                                <a href="{forumrow.U_LAST_POST}"><img src="/images/arrow_right.png" class="forumlist-arrow" /></a>
                                                <!-- ENDIF -->
 
                                                <!-- ELSE -->{L_NO_POSTS}</span>
                                                </th>
                                                <!-- ENDIF -->
                                            </tr>
 
                                        </thead>
                                    </table> <!-- ////////////////////////////////// MAIN LASTPOST TABLE END // -->                                
                                </th>
                            <!-- ENDIF -->
 
                            </tr>	
                        </thead>
 
                    </table> <!-- //////////////////////////////////// forumlist MAIN TABLE END /////// -->    
 
                    </div>
                    </div>
 
 
 
 
	<!-- ENDIF -->
 
	<!-- IF forumrow.S_LAST_ROW -->
 
			</div>
 
 		 <div class="forumlist-bottom">
         <div class="forumlist-bottom-left"></div>
         <div class="forumlist-bottom-right">
 
		 </div>
         </div>
 
  </div> <!-- end forumlist-post -->
  </div> <!-- end forumlist-content -->
 
	<!-- ENDIF -->
 
<!-- BEGINELSE -->
	<div class="panel">
		<div class="inner"><span class="corners-top"><span></span></span>
		<strong>{L_NO_FORUMS}</strong>
		<span class="corners-bottom"><span></span></span></div>
	</div>
<!-- END forumrow -->

Any help will be MUCHHHHHHH appreciated!!! thanks in advance Wink

http://oneillwebs.com/ ~ yes, my personal website built purely with tables which needs to be updated heavily Wink

(before i knew anything!)

oneeezy
oneeezy's picture
Offline
Enthusiast
Beaumont, TX
Last seen: 6 years 2 weeks ago
Beaumont, TX
Timezone: GMT-5
Joined: 2009-11-18
Posts: 98
Points: 128

got it! it was 2 closing div

got it! it was 2 closing div tags that i removed in the closing loop codes..!!

http://oneillwebs.com/ ~ yes, my personal website built purely with tables which needs to be updated heavily Wink

(before i knew anything!)

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 19 weeks 16 hours ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2043
Points: 2268

So, you're saying you didn't

So, you're saying you didn't validate? Shame, shame!

*shuns*