The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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=" " /></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=" " /> </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%"> </td> <td class="thead" width="45%" align="$stylevar[left]">$vbphrase[forum]</td> <td class="thead"> </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=" " /></td> <td class="catfooter"> </td> <td class="catfooter"><div align="right"><img src="$stylevar[imgdir_misc]/catfooter_right.gif" alt=" " /></div></td> </tr> </table> <!-- /top --> <!--div style="padding: 5px 5px 5px 5px;"></div--> Quote:
|
#2
|
||||
|
||||
![]()
Your tags aren't nested properly. You went:
Code:
<table> <if> <tbody> .... </if> </tbody> </table> |
#3
|
||||
|
||||
![]()
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=" " /></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=" " /> </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%"> </td> <td class="thead" width="45%" align="$stylevar[left]">$vbphrase[forum]</td> <td class="thead"> </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=" " /></td> <td class="catfooter"> </td> <td class="catfooter"><div align="right"><img src="$stylevar[imgdir_misc]/catfooter_right.gif" alt=" " /></div></td> </tr> </table> <!-- /top --> |
#4
|
||||
|
||||
![]()
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> HTML Code:
<table> <tr> <td> </td> </tr> </table> |
#5
|
||||
|
||||
![]() Quote:
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 ![]() |
#6
|
||||
|
||||
![]()
I've told you... you need to put the <if> tags outside of the <table> tags or it won't validate.
|
#7
|
||||
|
||||
![]()
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
|
#8
|
||||
|
||||
![]()
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=" " /></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=" " /> </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%"> </td> <td class="thead" width="45%" align="$stylevar[left]">$vbphrase[forum]</td> <td class="thead"> </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=" " /></td> <td class="catfooter"> </td> <td class="catfooter"><div align="right"><img src="$stylevar[imgdir_misc]/catfooter_right.gif" alt=" " /></div></td> </tr> </table> <!-- /top --> thanks again for the quick replay |
#9
|
||||
|
||||
![]()
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"> |
#10
|
||||
|
||||
![]()
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">
HTML Code:
<img src="/streetrod/misc/cattitle_left.gif" width="35" height="47" />
do not use HTML Code:
background="/streetrod/misc/footer_top.gif" HTML Code:
style="background: transparent url(/streetrod/misc/footer_top.gif) |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|