vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Validate Template (https://vborg.vbsupport.ru/showthread.php?t=220336)

matthewhotdude 08-06-2009 04:24 PM

Validate Template
 
I was over at VBSEO and they reccomended I Validate my template so I went onto http://validator.w3.org/check?uri=ht...idator%2F1.654

And I have 49 errors, I havent got a clue how to fix them so could someone please help me

Lynne 08-06-2009 04:40 PM

It's pretty self explanatory if you read the comments. For instance, the first one:
Quote:

Line 606, Column 96: ID "navbar_username" already defined … 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

It says the id is supposed to be unique, yet you've already used it before in this page. So, you need to choose a unique identifier to use there. The second error simply tells you where it was used before (line 510). The next one is again about not using a unique identifier.

Then you get onto some html... you didn't properly close a <td> or <tr> tag. Etc. Just read the comments. Many times if you fix one item, it eliminates a few of the errors.

matthewhotdude 08-06-2009 06:40 PM

Line 606, Column 96: ID "navbar_username" already defined … 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

So what am I actually supposed to change on there? id=navbar_username

Lynne 08-06-2009 08:17 PM

Yes, you need to change the id since it must be unique on that page. You may only have one item with an id of navbar_username on the page. You could call it navbar_username2 if you want. But, make sure if you have css associated with the id, then you'll have to add a new class also.

matthewhotdude 08-06-2009 09:05 PM

I would never be able to do that :( I have no clue that side of things!

Think I would even pay someone to sort it out

1Unreal 08-07-2009 02:03 AM

vBulletin doesn't validate anyway. Its very outdated software.


All times are GMT. The time now is 02:37 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.00951 seconds
  • Memory Usage 1,720KB
  • 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_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