Validating HTML

Mar. 31, 2005 @ 8:38 AM
# 1
KurisuRank 4: Major General (1,226 Points) Kurisu

Anyone else here tried to validate HTML on your website?

That's what I'm attempting to do right now with the new layout. I'm going insane!!!

Errors: 325

Now down to: 160

It's coming along I guess.


TheRoms.com
Administrator
Mar. 31, 2005 @ 9:24 AM
# 2
KurisuRank 4: Major General (1,226 Points) Kurisu

Down to 106 errors now:

1-15 are from popup code.
16-18 don't make sense to me.
19-60 is from updated.com search engine.
61-106 is from the translator.


TheRoms.com
Administrator
Mar. 31, 2005 @ 10:38 AM
# 3
KurisuRank 4: Major General (1,226 Points) Kurisu

Down to the 3 errors that don't make any sense to me.


TheRoms.com
Administrator
Mar. 31, 2005 @ 10:50 AM
# 4
KurisuRank 4: Major General (1,226 Points) Kurisu

Damn after spending all day on the damn errors I've finally got it fixed! Just hope that the code I edited for the popup to make it validate gets approved by paypopup so that I can use it :D


TheRoms.com
Administrator
Mar. 31, 2005 @ 12:13 PM
# 5
KurisuRank 4: Major General (1,226 Points) Kurisu

Weeeee I fixed the min-height problem in IE.

Anyone know why in IE when you have a <form> or </form> tag it adds an extra linebreak? In FF the spacing is correct around the form but in IE I always get an extra linebreak before and after the form. It's so annoying and I have no clue how to get rid of it.


TheRoms.com
Administrator
Mar. 31, 2005 @ 1:52 PM
# 6
KurisuRank 4: Major General (1,226 Points) Kurisu

Well I figured it out lol. If anyone else wants to know all you have to do is add this to your form tag
[code]style="display: inline;"[/code]
Now the forms look good in IE and FF :D


TheRoms.com
Administrator
Mar. 31, 2005 @ 3:46 PM
# 7
TetsuoRank 5: Brigadier General (828 Points) Tetsuo

yea, i did that with cc back in the day....took forever

Mar. 31, 2005 @ 4:37 PM
# 8
Marijuano LocosRank 7: Major (390 Points) Marijuano Locos

i tried that with my site.. i got it down from 800 to about 300. but a lot of them ended up screwing with my layout in either firefox or IE (never both at the same time) so i gave up in the end. it was mostly my news script with errors. like using capitals for html tags. you'd think a decent script would be xhtml compliant.

edit: ok it turns out i have 669 errors. but i'm not too fussed, it looks right in firefox and IE and loads in under a second.

Edited by Marijuano Locos on Mar. 31, 2005 @ 4:43 PM

Mar. 31, 2005 @ 10:46 PM
# 9
KurisuRank 4: Major General (1,226 Points) Kurisu

Marijuano Locos wrote:
it was mostly my news script with errors. like using capitals for html tags. you'd think a decent script would be xhtml compliant.


The script I'm using now is PHPNews. It's about the only thing on the site that was xhtml compliant before hand. It's also open source so that's always a nice bonus :D

Oh and for some quick fixes I just opened my souce and went find "<BR>" and replace with "<br />" and that fixed ~50 errors. Damn self closing line break tags. Who knew.


TheRoms.com
Administrator
Mar. 31, 2005 @ 11:10 PM
# 10
Marijuano LocosRank 7: Major (390 Points) Marijuano Locos

yeah the br is the first thing i check.
does phpnews let you add in old news? so i could add in my previous posts and it allow me to put previous dates in?

Mar. 31, 2005 @ 11:51 PM
# 11
KurisuRank 4: Major General (1,226 Points) Kurisu

You could add the news in but from the admin panel theres no way to edit the time of the entries. I'm sure you could login to phpMyAdmin and edit the time entry automatically. You could ask on their forums as well maybe they have some kind of converter.


TheRoms.com
Administrator
Apr. 02, 2005 @ 3:03 AM
# 12
KurisuRank 4: Major General (1,226 Points) Kurisu

Yay updated the main page to be valid now. Well everything except for the ad code. They said that my modified version wouldn't work properly so I couldn't use it. They said they would bring up the subject at the next meeting though so hopefully they can get some valid xhtml for me :D


TheRoms.com
Administrator
Apr. 02, 2005 @ 3:25 PM
# 13
Marijuano LocosRank 7: Major (390 Points) Marijuano Locos

i'm trying out this PHPnews script.. but when it comes to editing the time in phpmyadmin its crazy. dont know how they've done it.
time column = 1112435280
month = 9
year = 2005

ok the year is obvious.. but last i checked april is the 4th month. and how do they get the exact date and time off that sequence of numbers? :S

the news post shows: April 02, 2005, 10:48. no obvious pattern from those numbers.

Edited by Marijuano Locos on Apr. 02, 2005 @ 3:25 PM

Apr. 02, 2005 @ 10:48 PM
# 14
KurisuRank 4: Major General (1,226 Points) Kurisu

Check out this post. It's in UNIX time but don't ask me how to convert that to normal time I have no clue.

http://newsphp.sourceforge.net/forum/index.php?topic=852


TheRoms.com
Administrator
Apr. 02, 2005 @ 11:26 PM
# 15
Marijuano LocosRank 7: Major (390 Points) Marijuano Locos

thanks :D that gives me something to do while i wait for the matrix online to finish being maintained this evening.

Apr. 03, 2005 @ 12:15 AM
# 16
KurisuRank 4: Major General (1,226 Points) Kurisu

Thank god I didn't try to edit by hand. Just changing my br tags fixed 22,241 errors :D


TheRoms.com
Administrator
Apr. 03, 2005 @ 3:07 AM
# 17
Marijuano LocosRank 7: Major (390 Points) Marijuano Locos

:| if you had that many br errors... i can't imagine how many other ones there are.

Apr. 03, 2005 @ 3:36 AM
# 18
KurisuRank 4: Major General (1,226 Points) Kurisu

Hahaha :D

99.9% of those are from the rom pages. I just used <BR> to seperate each file so every one of those had tons of errors.

Finally got my poll results thing to validate. That one was a biatch to get working right. All I have left now is the rom pages and antileech.

add main page comments to that list....


TheRoms.com
Administrator
Apr. 03, 2005 @ 2:53 PM
# 19
Marijuano LocosRank 7: Major (390 Points) Marijuano Locos

i think i had fix a few things on my poll script.. but i dont think i touched the results. as long as the vote button is xhtml and works for anyone thats all thats important for me.

still got about 400-600 stuff on the main page to fix though :( but atleast now with PHPnews in place its better than it was.

Apr. 03, 2005 @ 10:45 PM
# 20
KurisuRank 4: Major General (1,226 Points) Kurisu

I really hope that the ad company gets some xhtml compliant script :D

Can't wait to put the w3c logo on the page :D


TheRoms.com
Administrator
Apr. 03, 2005 @ 11:15 PM
# 21
Marijuano LocosRank 7: Major (390 Points) Marijuano Locos

which ad company is non xhtml? i know paypopup isn't for some things, i've not looked into which ones are good and which aren't though.

Apr. 03, 2005 @ 11:18 PM
# 22
KurisuRank 4: Major General (1,226 Points) Kurisu

paypopup is the one that isn't.


TheRoms.com
Administrator
Apr. 06, 2005 @ 9:44 PM
# 23
Marijuano LocosRank 7: Major (390 Points) Marijuano Locos

how do you get small header fonts in phpnews? i tried h4 or something silly, size looks fine in firefox but huge in IE. how i make it smaller? i noticed it has news id in the h1 tag originally, so i dunno if i can use that in <font> or something.

Apr. 06, 2005 @ 10:38 PM
# 24
KurisuRank 4: Major General (1,226 Points) Kurisu

Don't know what you mean? This is my news template if that helps...
[code]<p>
<b>$subject</b> <i>- Posted on $time by $username</i>
<br />
$titletext
</p>
<p>
$comments | $sendtofriend | $views views
</p>[/code]


TheRoms.com
Administrator
Apr. 08, 2005 @ 2:44 PM
# 25
Marijuano LocosRank 7: Major (390 Points) Marijuano Locos

weird. mine starts off with:

[code]<p>
<h4 id="ni$news[id]">
$subject
</h4>[/code]
ah well, i know i can get rid of the id= now :)

Page: 1 2
Post Reply (All Fields are Required)

Anonymous Coward

Please login to post comments.