vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Edit Source Information (https://vborg.vbsupport.ru/showthread.php?t=204102)

JimmiOO 02-03-2009 06:33 PM

Edit Source Information
 
Can someone please enlighten me. When i load my forum up in IE then do a View, Source i get lots of code. I have a couple of small errors i would like to fix if possible. What template or file do i edit to put the errors right?

glennybee 02-03-2009 07:39 PM

That depends where the error is!

Copy the code that you want to find.

Go to Style Manager > Search in Templates

Paste in your code and see what template it's in.

JimmiOO 02-03-2009 07:55 PM

I went to http://validator.w3.org/ to validate my code and it came up with these errors.

I just wanted to fix them, i have found the templates that they apply to but cant seem to sort them.

Code:

1.        Line 572, Column 33: document type does not allow element "td" here.
<td align="right" valign="bottom"><img src="images/styles/channel/misc/ban_right

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).
2.        Line 575, Column 77: document type does not allow element "table" here.
?" border="0" width="100%" align="center">

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).
3.        Line 1658, Column 4: end tag for "table" omitted, but OMITTAG NO was specified.
</td>

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
4.        Line 558, Column 0: start tag was here.
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" st
5.        Line 1658, Column 5: XML Parsing Error: Opening and ending tag mismatch: table line 558 and td.
</td>

6.        Line 1660, Column 5: XML Parsing Error: Opening and ending tag mismatch: td line 537 and tr.
</tr>

7.        Line 1661, Column 8: XML Parsing Error: Opening and ending tag mismatch: tr line 535 and table.
</table>

8.        Line 1702, Column 7: XML Parsing Error: Opening and ending tag mismatch: table line 534 and body.
</body>

9.        Line 1703, Column 7: XML Parsing Error: Opening and ending tag mismatch: body line 532 and html.
</html>

10.        Line 1703, Column 7: XML Parsing Error: Premature end of data in tag html line 2.
</html>


Dismounted 02-04-2009 05:42 AM

Did you have a read of the "errors"? From what I can see, you have overlapping tags.

Overlapping:
HTML Code:

<form><div>Some Text</form></div>

JimmiOO 02-04-2009 05:52 AM

Yeah it looks like i have overlapping tags, is this a big problem? and how do i fix it if it is? I use a custom skin so i think it may be causing the problem.

Dismounted 02-04-2009 07:26 AM

Quote:

Originally Posted by JimmiOO (Post 1733866)
Yeah it looks like i have overlapping tags, is this a big problem?

It's a problem, maybe big, maybe not. Different browsers will render those pages differently if the code structure is not as expected.
Quote:

Originally Posted by JimmiOO (Post 1733866)
how do i fix it if it is? I use a custom skin so i think it may be causing the problem.

Make them not overlap. :p However, before you start chasing your style's author. Disable any modifications you have running, one of them may be causing this.


All times are GMT. The time now is 08:11 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.01068 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete