Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 02-15-2005, 02:38 AM
Mijae's Avatar
Mijae Mijae is offline
 
Join Date: Nov 2001
Location: Russia
Posts: 523
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help me validate my forum

I am getting 95 errors

http://validator.w3.org/check?uri=ht...orum/index.php

Tell me where to start, and how

EDIT: Got down to 83 errors I can't get it lower
EDIT 2: Got down to 67 errors

What in gods name is general entity "threadid" not defined and no default entity and reference not terminated by REFC delimiter, like 50 of the errors come from those! I dont even know what that is :P

EDIT 3: Down to 25 errors, 32 errors were due to a missing amp; :speechless:

EDIT 4: Down to 19 errors, one mine (can't figure it out), and 18 from a tracked I use (eXtremetracking). Also, showthread.php has gotten from 270+ to 20 errors now.

Wow. This turned out to be fun :P

EDIT 5: Fixed table issue by removing thead

EDIT 6: AT LAST! This Page Is Valid XHTML 1.0 Transitional!

EDIT 7: How can I make this XHTML compliant?

Code:
<a target="_blank" href="http://t.extreme-dm.com/?login=ivtrack"><img src="http://u1.extreme-dm.com/i.gif" height=1 border=0 width=1 alt=""></a><script language="javascript1.2"><!--
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//-->
</script><script language="javascript"><!--
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXd.write("<img src=\"http://t0.extreme-dm.com",
"/0.gif?tag=ivtrack&j=y&srw="+EXw+"&srb="+EXb+"&",
"l="+escape(EXd.referrer)+"\" height=1 width=1>");//-->
</script><noscript><img height=1 width=1 alt=""
src="http://t0.extreme-dm.com/0.gif?tag=ivtrack&j=n"></noscript>
I did everything the validator told me and I ended with java errors

On a side note, what does amp; do? Does it break anything? I am adding amp; everywhere the validator tells me to. Will it break the forum links? Altho so far it works, I am afraid of doing what I do.
Reply With Quote
  #2  
Old 02-15-2005, 06:56 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I clicked your link, and bring the following fixes for validation errors:
  • Make sure you use "" around every single attribute value. EX: u1.extreme-dm.com/i.gif" height=1 border=0 width=1 ===> u1.extreme-dm.com/i.gif" height="1" border="0" width="1"
  • <script language="javascript1.2"> this must be <script type="text/javascript">
  • <script language="javascript"> same as above.
  • t0.extreme-dm.com/0.gif?tag=ivtrack&j=n"> encode the & into &amp;

HTH


//out
Reply With Quote
  #3  
Old 02-15-2005, 07:04 AM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the noobish question, but what are 'advantages' (if any) of being XHTML 1.0 compliant ?
Reply With Quote
  #4  
Old 02-15-2005, 08:53 AM
Guy G Guy G is offline
 
Join Date: Nov 2004
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

all of your errors are very easy to fix..

for example:
Quote:
Line 110, column 187: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified

...ttp://u1.extreme-dm.com/i.gif" height=1 border=0 width=1 alt=""></a><script l
Make sure you put " " for any attr you put, so it would look like this:
HTML Code:
...ttp://u1.extreme-dm.com/i.gif" height="1" border="0" width="1" alt="">
than you get rid of a lot of errors...

The java script error is fixed by the <script type="text/javascript">

and the J errors are caused becasue of a wrong use of the &.
all & should be in a code, like so: &amp;

and for the img erros you are missing the closing tag, all img tags should be like so:
<img src="" alt"" ..... />

Thats about all of your errors... 5 min and u are done.


Quote:
Originally Posted by cinq
Sorry for the noobish question, but what are 'advantages' (if any) of being XHTML 1.0 compliant ?
Also, there isnt any, its just fun to see your board XHTML validated and have that picture... lol
Reply With Quote
  #5  
Old 02-15-2005, 09:53 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Put javascript in an external file ,the w3c validator doesn't like it
Reply With Quote
  #6  
Old 02-15-2005, 12:43 PM
Mijae's Avatar
Mijae Mijae is offline
 
Join Date: Nov 2001
Location: Russia
Posts: 523
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dean C
Put javascript in an external file ,the w3c validator doesn't like it
Thats what I already did, I made that tracker code validate, but I started getting java errors.

I guess I will make it an external file :P

EDIT: Stole a modified tracker code from another site and now it validates :P
Reply With Quote
  #7  
Old 02-15-2005, 06:33 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Guy G
all of your errors are very easy to fix..

for example:


Make sure you put " " for any attr you put, so it would look like this:
HTML Code:
...ttp://u1.extreme-dm.com/i.gif" height="1" border="0" width="1" alt="">
than you get rid of a lot of errors...

The java script error is fixed by the <script type="text/javascript">

and the J errors are caused becasue of a wrong use of the &.
all & should be in a code, like so: &amp;

and for the img erros you are missing the closing tag, all img tags should be like so:
<img src="" alt"" ..... />

Thats about all of your errors... 5 min and u are done.
Wow.. this post was SO different from my post?


Quote:
Originally Posted by cinq
Sorry for the noobish question, but what are 'advantages' (if any) of being XHTML 1.0 compliant ?
Well, to show the world you are not whipped by M$ and another one of those IE sheep, for one.
Writing standards compliant code, even more so XHTML 1.0 (or 1.1 if you're feeling tough) shows that you have taken the time to write code that will render 100 % in all browsers, which again shows that you care for your users.


//out
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:30 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.17733 seconds
  • Memory Usage 2,225KB
  • 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
  • (2)bbcode_html
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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