PDA

View Full Version : Little coding thing


juanpablo
10-14-2008, 12:20 AM
HI!, Today I?ve a simple problem. I cant get this code validate, and I was wondering if you can helpme:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="$stylevar[outertablewidth]" 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="55%" style="text-align: stylevar[left];">$vbphrase[forum]</td>
<td class="thead" width="10%">$vbphrase[threads]</td>
<td class="thead" width="10%">$vbphrase[posts]</td>
<td class="thead" width="20%">$vbphrase[last_post]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead" width="0%">$vbphrase[moderator]</td>
</if>
</tr>
$childforumbits
</tbody>
</if>
</table>











Like always, thank you all!

Dismounted
10-14-2008, 04:43 AM
What validation?

juanpablo
10-14-2008, 12:59 PM
w3, Im sorry and Thanks

mooreaa
10-14-2008, 09:54 PM
do you have a url for the page that doesn't validate?

You are using table width and align... you might look at the html doctype to see if it might be causing your validation issues. This would be the very first tag at the very top of your page... without it we won't know what rules you are trying to follow so let us know your doctype or url.

FYI the doctype tag should look something like: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Dismounted
10-15-2008, 06:08 AM
Your code will definitely not validate if you just pass that snippet through. And it will not validate when it is not parsed. So you need to actually pass the page URL through the validator, as that is the complete page.

juanpablo
10-19-2008, 06:52 PM
Of course, but I just copy the part of code wich is having a problem

Dismounted
10-20-2008, 06:06 AM
And the error is?...