PDA

View Full Version : Validating main page - 3 errors


bobby9101
03-18-2006, 05:12 PM
When i use the W3.org html validator i return 3 errors. they all are involved with that nasty hit counting javascript :( Is there any way to validate that without removing?
here are my errors:
Content visible to registered users only.
and here is that code from main.tpl:
Content visible to registered users only.
any help would be great thanx

anon
03-19-2006, 01:00 AM
if validation is all that much important to you, just take that code out of the main.tpl and put it in a .js file and then call it from within the main.tpl

bobby9101
03-19-2006, 02:43 AM
but then it isnt really validated... that page is but the other isnt
i am trying to fix the code but w/e

anon
03-19-2006, 02:46 AM
Content visible to registered users only.
what? isn't validated?

you're trying to 'fix' code that that ISN'T broke? :lol:

but yea, w/e gl

Psyclones
03-20-2006, 09:25 AM
Try this:

You get a warning but the errors will go.
Content visible to registered users only.

bobby9101
03-20-2006, 03:31 PM
will the sort by hits still work?

Psyclones
03-20-2006, 03:34 PM
should do,

boby gave me this code when I got stuck validating my directory also.

got stuck on the exact same thing.