View Full Version : W3 XHTML Problem
fly4food84
Wed 2nd Apr '08, 8:24pm
I just installed the blog as well as vbb and getting these errors only when validating the blog.
http://validator.w3.org/check?uri=http%3A%2F%2Fwillfly4food.net%2Fforums%2 Fblog.php
Can anyone give me a quick fix or is this a bug?
I'm only happy when all my pages are XHTML. :)
CHIPIT
Wed 2nd Apr '08, 9:02pm
For the first error, open up your blog template and remove the second xmlns attribute on the first line. Should fix the fourth one, too.
The second and third seem to conflict each other. The second says the li tag is missing and the third says you forgot to close it... check that the <li> tag appears before the div tag in the template that displays the recent comments. I forget the name but it's usually easy to figure out.
fly4food84
Thu 3rd Apr '08, 12:05am
Do you know which template it is?
CHIPIT
Thu 3rd Apr '08, 12:42am
Well for the first one it's just the BLOG template.
For the other it seems to be blog_home_list_comment.
fly4food84
Thu 3rd Apr '08, 1:13am
I hope you can excuse my stupidity, but I can't find any templates by those two names.
Can you hold my hand on this one and give me the exact file name and directory? :)
CHIPIT
Thu 3rd Apr '08, 1:46am
You must go to your admin cp, and then to the styles manager, click edit templates in the dropdown for your style, and they will both be under the blog group.
fly4food84
Thu 3rd Apr '08, 2:34am
Got it, thanks!
fly4food84
Thu 3rd Apr '08, 5:52pm
Problem one: solved.
As far as problem 2:
The <li> tags are before the <div> tags in blog_home_list_comment.
Any other suggestions?
CHIPIT
Thu 3rd Apr '08, 8:47pm
Open the blog_home_list comment and search for <ol class="nobullets" id="latestcomments"><div class="smallfont"> and insert an <li> tag before the DIV tag so it reads
<ol class="nobullets" id="latestcomments"><li><div class="smallfont"> and then a few lines below that you should see </div></ol> Replace that with </div></li></ol>
fly4food84
Fri 4th Apr '08, 1:02am
I see this code when viewing the source of the document in my browser, but I do not see anything resembling it in the blog_home_list_comment template.
CHIPIT
Fri 4th Apr '08, 1:09am
Go to vB Options > General Settings > Display template names in HTML comments.
Set to yes, and then refresh the blog page, and view the source.
Look right above where you see the code, and try to fin something like <!-- BEGIN TEMPLATE blog_some_thing -->
That will tell you which template it is.
fly4food84
Fri 4th Apr '08, 2:35am
Thanks for your support. That fixed it!!
CHIPIT
Fri 4th Apr '08, 7:32pm
No problem
vBulletin® v3.8.0 Beta 4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.