PDA

View Full Version : Only one error to fix to obtain w3c Markup validation


Masiello
11-26-2006, 01:47 PM
Hello, I need help, I've fixed myself over 25 bad errors on one template, but now I'm stopped only for one to make w3c markup validate at 100%.
It seems to be correct and I don't know why this error appear, please anybody can help me, to show all parser go here pls:

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.lottosqueeze.org%2Fforu ms%2F%3Fstyleid%3D8&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&No200=1&verbose=1

calorie
11-26-2006, 02:03 PM
After a quick glance, it doesn't look like lines 922 through 932 are contained within table tags.

Masiello
11-26-2006, 02:05 PM
And how to fix?
Can if you prefer I paste here the footer code.
thx

Here is the code:

<br />
<br />
<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" class="page" align="center">
<tr>
<td align="$stylevar[left]">
<div class="smallfont" align="left">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div></td>
<td align="$stylevar[right]"><div class="smallfont"><strong>
<if condition="!$show['guest']">
<!-- member logout -->
<a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a>
<!-- end member logout -->
</if>
</strong>
</div>
</td>
</tr>
</table>
<br />
<br />

<!-- /content area table -->
<if condition="$show['quickchooser']">

<td class="tfoot">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
</td>
</if>
<if condition="$show['languagechooser']">
<td class="tfoot">
<select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="$vbphrase[quick_language_chooser]">
$languagechooserbits
</optgroup>
</select>
</td>
</if>

<div class="smallfont" align="right">
<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
<if condition="$vboptions[hometitle]"><a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -</if>
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>

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

<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();
//-->
</script>
</div>

calorie
11-26-2006, 02:10 PM
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="tfoot">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="Scelta Dello Stile Preferito">
<option value="6" class="" >-- Imagize</option>
<option value="7" class="" >-- Imagize_x</option>
<option value="1" class="" >-- Default Style</option>
<option value="8" class="" selected="selected">-- Blue Toast</option>
</optgroup>
</select>
</td>
</tr>
</table>

Masiello
11-26-2006, 02:14 PM
In that mode:

Line 924, column 19: document type does not allow element "td" here; assuming missing "tr" start-tag .

<td class="tfoot">

EDIT: Ops sorry, forgot the open tr tag, it's fixed now!!!
Thank you so much!!

Thanks again Men :-)