vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   validation using w3.org help! (https://vborg.vbsupport.ru/showthread.php?t=208453)

tipoboy 03-15-2009 08:51 PM

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

Lynne 03-15-2009 10:09 PM

Your tags aren't nested properly. You went:

Code:

<table>
<if>
<tbody>
....
</if>
</tbody>
</table>


tipoboy 03-15-2009 10:20 PM

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 -->


Lynne 03-15-2009 10:27 PM

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>


tipoboy 03-15-2009 11:20 PM

Quote:

Originally Posted by Lynne (Post 1769129)
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 :)

Lynne 03-15-2009 11:25 PM

I've told you... you need to put the <if> tags outside of the <table> tags or it won't validate.

DieselMinded 03-15-2009 11:38 PM

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

tipoboy 03-15-2009 11:41 PM

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

Lynne 03-16-2009 03:13 AM

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.

Princeton 03-16-2009 12:32 PM

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>


All times are GMT. The time now is 10:07 AM.

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.01419 seconds
  • Memory Usage 1,786KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (9)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete