Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-03-2009, 06:33 PM
JimmiOO JimmiOO is offline
 
Join Date: Nov 2007
Location: Channel Islands, Jersey
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 02-03-2009, 07:39 PM
glennybee glennybee is offline
 
Join Date: Feb 2008
Location: Scotland
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 02-03-2009, 07:55 PM
JimmiOO JimmiOO is offline
 
Join Date: Nov 2007
Location: Channel Islands, Jersey
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #4  
Old 02-04-2009, 05:42 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #5  
Old 02-04-2009, 05:52 AM
JimmiOO JimmiOO is offline
 
Join Date: Nov 2007
Location: Channel Islands, Jersey
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 02-04-2009, 07:26 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JimmiOO View Post
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 View Post
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. However, before you start chasing your style's author. Disable any modifications you have running, one of them may be causing this.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:10 PM.


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.03646 seconds
  • Memory Usage 2,214KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete