Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-15-2009, 08:51 PM
tipoboy's Avatar
tipoboy tipoboy is offline
 
Join Date: Dec 2005
Location: scotland
Posts: 693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default validation using w3.org help!

hi there folks i need a bit of help validating my site

i started off with over 300 errors and have got it down to 46.

the next error i need to deal with relates to my forumhome_forumbit_level1_nopost template, which is

Code:
<!-- top -->
<table class="forumbit1" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="cattitle" width="35" valign="top"><img src="$stylevar[imgdir_misc]/cattitle_left.gif" width="35" height="47" alt="&nbsp;" /></td>
    <td class="cattitle" width="85%">
 <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> 
<if condition="$show['forumdescription']">: <span class="smallfont">$forum[description]</span></if>
</td>
    <td class="cattitle" valign="top">
 
 <div align="right">
 <img src="$stylevar[imgdir_misc]/cattitle_right.gif" width="35" height="47" alt="&nbsp;" /> 
</div></td>
  </tr>
  <tr>
    <td colspan="3">
 
 
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="95%" align="center">
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
 <tr align="center">
   <td class="thead" width="5%">&nbsp;</td>
   <td class="thead" width="45%" align="$stylevar[left]">$vbphrase[forum]</td>
           <td class="thead">&nbsp;</td>
   <td class="thead" width="30%">$vbphrase[last_post]</td>
   <td class="thead" width="10%">$vbphrase[threads]</td>
   <td class="thead" width="10%">$vbphrase[posts]</td>
   <if condition="$vboptions[showmoderatorcolumn]">
   <td class="thead">$vbphrase[moderator]</td>
   </if>
 </tr>
$childforumbits
</if>
</tbody>
</table>
 
 
 
 </td>
  </tr>
  <tr>
    <td class="catfooter"><img src="$stylevar[imgdir_misc]/catfooter_left.gif" alt="&nbsp;" /></td>
    <td class="catfooter">&nbsp;</td>
    <td class="catfooter"><div align="right"><img src="$stylevar[imgdir_misc]/catfooter_right.gif" alt="&nbsp;" /></div></td>
  </tr>
</table>
<!-- /top -->
<!--div style="padding: 5px 5px 5px 5px;"></div-->
the error i need to sort out is

Quote:
Line 249, Column 80: document type does not allow element "table" here .
?r="0" cellpadding="0" cellspacing="0">The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
any help here would be grately appreciated
Reply With Quote
  #2  
Old 03-15-2009, 10:09 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your tags aren't nested properly. You went:

Code:
<table>
<if>
<tbody>
....
</if>
</tbody>
</table>
Reply With Quote
  #3  
Old 03-15-2009, 10:20 PM
tipoboy's Avatar
tipoboy tipoboy is offline
 
Join Date: Dec 2005
Location: scotland
Posts: 693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for the reply lynne

i changed the code so the elements were nested correctly and it didnt seem to change anything still stuck on 49 errors

could you or anyone else offer any more assistance the forumhome_forumbit_level1_nopost template is now

Code:
<!-- top -->
<table class="forumbit1" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="cattitle" width="35" valign="top"><img src="$stylevar[imgdir_misc]/cattitle_left.gif" width="35" height="47" alt="&nbsp;" /></td>
    <td class="cattitle" width="85%">
 <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> 
<if condition="$show['forumdescription']">: <span class="smallfont">$forum[description]</span></if>
</td>
    <td class="cattitle" valign="top">
 
 <div align="right">
 <img src="$stylevar[imgdir_misc]/cattitle_right.gif" width="35" height="47" alt="&nbsp;" /> 
</div></td>
  </tr>
  <tr>
    <td colspan="3">
 
 
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="95%" align="center">
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
 <tr align="center">
   <td class="thead" width="5%">&nbsp;</td>
   <td class="thead" width="45%" align="$stylevar[left]">$vbphrase[forum]</td>
           <td class="thead">&nbsp;</td>
   <td class="thead" width="30%">$vbphrase[last_post]</td>
   <td class="thead" width="10%">$vbphrase[threads]</td>
   <td class="thead" width="10%">$vbphrase[posts]</td>
   <if condition="$vboptions[showmoderatorcolumn]">
   <td class="thead">$vbphrase[moderator]</td>
   </if>
 </tr>
$childforumbits
</tbody> 
</if>
</table>
</td>
  </tr>
  <tr>
    <td class="catfooter"><img src="$stylevar[imgdir_misc]/catfooter_left.gif" alt="&nbsp;" /></td>
    <td class="catfooter">&nbsp;</td>
    <td class="catfooter"><div align="right"><img src="$stylevar[imgdir_misc]/catfooter_right.gif" alt="&nbsp;" /></div></td>
  </tr>
</table>
<!-- /top -->
Reply With Quote
  #4  
Old 03-15-2009, 10:27 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, you will get an error if that if statement evals to false (just ask Dieselminded - he's got an error just like that on a different page). You should put the if statement outside of the table. The thing is, you can't have:
HTML Code:
<table>
</table>
You need to have at least:
HTML Code:
<table>
<tr>
<td>
</td>
</tr>
</table>
Reply With Quote
  #5  
Old 03-15-2009, 11:20 PM
tipoboy's Avatar
tipoboy tipoboy is offline
 
Join Date: Dec 2005
Location: scotland
Posts: 693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Actually, you will get an error if that if statement evals to false (just ask Dieselminded - he's got an error just like that on a different page). You should put the if statement outside of the table. The thing is, you can't have:
HTML Code:
<table>
</table>
You need to have at least:
HTML Code:
<table>
<tr>
<td>
</td>
</tr>
</table>
why oh why did i start this validation business lol

i'm sorry lynne i dont follow, i've tried a few different methods and i cant seem to get it sorted, could i trouble you to post using the code i've added what you think will get it throught the validation so i can see what i'm doing wrong??

thanks again for your help
Reply With Quote
  #6  
Old 03-15-2009, 11:25 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've told you... you need to put the <if> tags outside of the <table> tags or it won't validate.
Reply With Quote
  #7  
Old 03-15-2009, 11:38 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Listen to Lynne she came in to my site and fixed over 600 errors i worked for 3 hours and had more than i started with
Reply With Quote
  #8  
Old 03-15-2009, 11:41 PM
tipoboy's Avatar
tipoboy tipoboy is offline
 
Join Date: Dec 2005
Location: scotland
Posts: 693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i've moved the if conditionals so the code now looks like

Code:
<!-- top -->
<table class="forumbit1" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="cattitle" width="35" valign="top"><img src="$stylevar[imgdir_misc]/cattitle_left.gif" width="35" height="47" alt="&nbsp;" /></td>
    <td class="cattitle" width="85%">
 <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> 
<span class="smallfont">$forum[description]</span>
</td>
    <td class="cattitle" valign="top">
 
 <div align="right">
 <img src="$stylevar[imgdir_misc]/cattitle_right.gif" width="35" height="47" alt="&nbsp;" /> 
</div></td>
  </tr>
  <tr>
    <td colspan="3">
 
<if condition="$childforumbits"> 
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="95%" align="center">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
 <tr align="center">
   <td class="thead" width="5%">&nbsp;</td>
   <td class="thead" width="45%" align="$stylevar[left]">$vbphrase[forum]</td>
           <td class="thead">&nbsp;</td>
   <td class="thead" width="30%">$vbphrase[last_post]</td>
   <td class="thead" width="10%">$vbphrase[threads]</td>
   <td class="thead" width="10%">$vbphrase[posts]</td>
   <if condition="$vboptions[showmoderatorcolumn]">
   <td class="thead">$vbphrase[moderator]</td>
  </if>
  </tr>
$childforumbits 
</tbody> 
</table>
</if>
</td>
  </tr>
  <tr>
    <td class="catfooter"><img src="$stylevar[imgdir_misc]/catfooter_left.gif" alt="&nbsp;" /></td>
    <td class="catfooter">&nbsp;</td>
    <td class="catfooter"><div align="right"><img src="$stylevar[imgdir_misc]/catfooter_right.gif" alt="&nbsp;" /></div></td>
  </tr>
</table>
<!-- /top -->
but still the same errors i've highlighted in red the line that the error appertains to

thanks again for the quick replay
Reply With Quote
  #9  
Old 03-16-2009, 03:13 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not the table element at all. It's exactly what the error says - the element isn't allowed there. If you look right before the table, you'll see you closed a row:
HTML Code:
</tr>    <!-- / guest welcome message -->
    
<!-- top -->
<table class="forumbit1" width="100%" border="0" cellpadding="0" cellspacing="0">
Things in a table may only go between <td> tags. Somewhere along the way, you either dropped the next row tags or else you forgot to close the table.
Reply With Quote
  #10  
Old 03-16-2009, 12:32 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

check SHOWTHREAD to fix above issue

---------
TIPS

close all your <images> properly
HTML Code:
<img src="/streetrod/misc/cattitle_left.gif" width="35" height="47">
should be
HTML Code:
<img src="/streetrod/misc/cattitle_left.gif" width="35" height="47" />
(pay attention to the closing brackets)

do not use
HTML Code:
 background="/streetrod/misc/footer_top.gif"
use
HTML Code:
style="background: transparent url(/streetrod/misc/footer_top.gif)
do not use <center>, <font>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04374 seconds
  • Memory Usage 2,279KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (9)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete