Jump to content

Downloads page is not valid


Recommended Posts

Downloads page is not valid any ides

 

<p>{$LANG.downloadsintrotext}</p>

<p><strong>{$LANG.downloadscategories}</strong></p>

<table width="100%">
<tr>
{foreach key=num item=dlcat from=$dlcats}
<td width="33%" valign="top"><strong><a href="downloads.php?action=displaycat&catid={$dlcat.id}"><img src="images/support/folder.gif" border="0" align="middle" alt="" /> {$dlcat.name}</a></strong> ({$dlcat.numarticles})<br />
{$dlcat.description}
</td>
{if $num is div by 3}
</tr>
<tr>
{/if}
{/foreach}
</tr>
</table>

<br />

<table width="100%" cellspacing="0" cellpadding="0"><tr><td width="50%" valign="top">

<p><strong>{$LANG.knowledgebasepopular} {$LANG.downloadstitle}</strong></p>

<table width="100%">
{foreach key=num item=download from=$mostdownloads}
<tr><td>
<p>{$download.type} <a href="{$download.link}"><strong>{$download.title}</strong></a><br />{if $download.clientsonly}<i>Login Required</i><br />{/if}{$download.description}<br /><font style="color:#A8A8A8;font-size:10px;">{$LANG.downloadsfilesize}: {$download.filesize}</font><br /><br /></p>
</td></tr>
{/foreach}
</table>

</td><td width="50%">

<form method="post" action="downloads.php?action=search">
<p align="center"><strong>{$LANG.knowledgebasesearch}</strong><br /><input type="text" name="search" size="25" /><br /><input type="submit" value="{$LANG.knowledgebasesearch}" /></p>
</form>

</td></tr></table>

 

Validation Output: 2 Errors

 

Line 52, Column 4: end tag for "tr" which is not finished.

</tr>✉

Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

 

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.

 

 

 

Line 62, Column 7: end tag for "table" which is not finished.

</table>✉

Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

 

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.

Link to comment
Share on other sites

Are you trying to validate to Strict? Really hard to say. IIRC, some validations will reject <table> tags with width= valign= etc. Similarly, tags such as td width= would be included. This should be in CSS, as its presentation.

<br /> is another one I think strict validation rejects.

 

You should look at the page-source not the .tpl when comparing validation notes to your output.

Link to comment
Share on other sites

This is one of the lines

<table width="100%">

{foreach key=num item=download from=$mostdownloads}

<tr><td>

<p>{$download.type} <a href="{$download.link}"><strong>{$download.title}</strong></a><br />{if $download.clientsonly}<i>Login Required</i><br />{/if}{$download.description}<br /><font style="color:#A8A8A8;font-size:10px;">{$LANG.downloadsfilesize}: {$download.filesize}</font><br /><br /></p>

</td></tr>

{/foreach}

</table>

 

this is the last one

 

<table width="100%">

<tr>

{foreach key=num item=dlcat from=$dlcats}

<td width="33%" valign="top"><strong><a href="downloads.php?action=displaycat&catid={$dlcat.id}"><img src="images/support/folder.gif" border="0" align="middle" alt="" /> {$dlcat.name}</a></strong> ({$dlcat.numarticles})<br />

{$dlcat.description}

</td>

{if $num is div by 3}

</tr>

<tr>

{/if}

{/foreach}

</tr>

</table>

 

i need help whit this one

Link to comment
Share on other sites

  • 1 year later...
This is one of the lines

 

 

this is the last one

 

 

 

i need help whit this one

 

Hi,

 

...{/foreach}

<td></td></tr>

</table>

 

 

now is valide :)

 

--------------------------------------------------------------------------

 

my site:

 

 

 

{foreach key=num item=download from=$mostdownloads}

<div class="top5">

<table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td><img src="images/top.gif" border="0" class="absmiddle" alt="" /> <strong><a style="color:#333333;font-size:12px;" href="{$download.link}">{$download.title}</a></strong><br />

<span style="margin-left:0px;color:#666;font-size:11px;">{$download.description|truncate:120:"..."}</span><br />

<span style="color:#333;font-size:11px;"><b>{$LANG.downloadsfilesize}: {$download.filesize}</b></span><br />

<br />

</td>

</tr>

</table>

</div>{/foreach}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated