+ Reply to Thread
Results 1 to 12 of 12

Thread: Cleaning up HTML errors in templates

  1. #1
    Senior Member NgtCrwlr is on a distinguished road NgtCrwlr's Avatar
    Join Date
    Jun 2000
    Location
    Fort Myers, FL, USA
    Posts
    109
    Hi Guys,

    Well I'm starting the template cleanup project and need some advice on the best approach. At first I was going to post the errors that I found, but this would be too much of a time consumer. Here's an example of how hard that would be:

    forumhome

    5 The attribute value "text/css" for the TYPE attribute was not enclosed in single or double quotation marks when it must be.
    in cssinclude template add quotes to (type="text/css")

    112 The FONT tag must be closed but the closing tag was not found.
    in forumbit template find (alt="Go to last post"></a> $lastpostdate) add (</normalfont>) after $lastpostdate

    121 The ID or NAME attribute value "cat" has already been used in this document. A tag's ID or NAME attribute must be unique within the document. A tag cannot have an ID or NAME attribute that has already been used. Note that the ID values are not case sensitive (except when used to link to an anchor) and that ID and NAME attribute values share the same namespace.
    Not sure how to handle this one yet

    130 The closing tag for TD was found, but the tag was never opened or has been closed too many times.
    130 The closing tag for TR was found, but the tag was never opened or has been closed too many times.
    remove the /td /tr and leave /table in line 130

    145 The FONT tag (opened in line 145) should be closed before the B tag is closed (nesting error).
    find (A closed forum) swap </b></font> to </font></b>

    Right now I'm thinking that I'll just do the cleanup and post the templates instead of pointing out where each error is.

    Another question is how many of you use .css? For our forum I am replacing 99% of the FONT tags with CSS and am wondering if it would be better to just post the validated templates that I use. Kind of a catch22 because most of you have modified templates already. The big problem is figuring out how to let everyone know where the errors are.

    By the way this whole ordeal is just because I'm a fanatic when it comes to valid HTML 4.0 code. I'm sure there are some of you who could care less as long as it works, but I'm sure there are other's like me that would prefer to have valid code.

    Anyone have any input on how to go about this?

    Larry "NgtCrwlr" Mingus
    http://www.mis-forums.com

    [Edited by NgtCrwlr on 06-14-2000 at 10:40 PM]

  2. #2
    New Member Digi-God is on a distinguished road
    Join Date
    Sep 2000
    Location
    Kampenhout, Belgium
    Age
    26
    Posts
    9

    You've found a friend ...

    I'm also a bit anal when it comes to clean HTML. My site footer include proudly displays the 'valid HTML 4.01' logo all over the shop... It was VERY embarassing to see the rude things vBulletin did to my perfect record

    If you need some help cleaning up the templates, give me a shout, I'll give you a hand.

    I've started on it myself, but I'm getting nowhere...

    I dumped the template table into a text file, and I'm driving myself nuts with the vi(1) editor trying to clean the thing up...

    Any suggestions and help are MOST welcome!

    - Philip
    Philip Paeps
    Guardian Angel

  3. #3
    Senior Member chrispadfield is on a distinguished road chrispadfield's Avatar
    Join Date
    Aug 2000
    Location
    London, UK
    Age
    28
    Posts
    5,368
    maybe it is worth waiting until the new set of templates come out in the next release ?

  4. #4
    Senior Member NgtCrwlr is on a distinguished road NgtCrwlr's Avatar
    Join Date
    Jun 2000
    Location
    Fort Myers, FL, USA
    Posts
    109

    Hmm

    Sorry I'm late to reply. I thought this was a dead issue, at least no one till now showed any interest. I figured as long as no one came forward it would be a waist of my effort to clean up the default templates.

    Instead I focused on my own templates. It took quite a few hours, but I did get all of our pages to pass CSE HTML Validator.

    Digi-God, I think Chrspadfield has the right idea about waiting for the next release. It's a lot of work and I'm afraid a lot of the work would need to be done again in the next version.

    I'm all for doing this as a group project when the new templates are ready. Just give me a toot when you're ready.

    Cheers!

    Larry

  5. #5
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    well i like my templates the way i have them... cleaning it up would be a hell of a job..

    which validator do you use ?
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!

  6. #6
    Senior Member NgtCrwlr is on a distinguished road NgtCrwlr's Avatar
    Join Date
    Jun 2000
    Location
    Fort Myers, FL, USA
    Posts
    109
    eva2000 - This is what I use and highly recomend.
    http://www.htmlvalidator.com/htmldownload.html

    I think you would be surprised to see just how many HTML errors there are in vB. Give the trial version of CSE a shot, it's a tool you shouldn't be without.

    Cheers!

    -Larry

  7. #7
    vBulletin Developer Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham's Avatar
    Join Date
    May 2000
    Location
    California
    Age
    35
    Posts
    13,941
    Blog Entries
    16
    The new templates are available in the members section. You can get to work early if you wish
    vBulletin Developer since Dec 2000

  8. #8
    New Member Meli is on a distinguished road
    Join Date
    Nov 2000
    Location
    Atlanta, GA
    Posts
    20

    Any updates on this topic?

    I'm relatively new here so I'm pulling up old posts, but...

    I was curious as to whether someone has been tasked with validating the HTML in version 2.0?

    I am also a stickler for proper HTML, and I moving now toward having all my sites both valid and proper in XHTML 1.0. I'm just wondering how much work will be involved in 'fixing' the templates when the new version is released.

    Thx.

  9. #9
    vBulletin Developer Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham's Avatar
    Join Date
    May 2000
    Location
    California
    Age
    35
    Posts
    13,941
    Blog Entries
    16
    Validating the HTML in v2.0 will be almost (if not the last) thing that is done.
    vBulletin Developer since Dec 2000

  10. #10
    Senior Member Paul is on a distinguished road Paul's Avatar
    Join Date
    Dec 2001
    Location
    Next door to Mike Sullivan
    Posts
    826
    Quote Originally Posted by freddie
    Validating the HTML in v2.0 will be almost (if not the last) thing that is done.
    By '[last thing] that is done'... do you mean we should still be waiting for it?

    I just found this thread while doing a search for others who might have tackled this. I'm currently in the process of migrating all of vbulletin's templates to valid XHTML/CSS. I'm actually trying to eliminate tables.

    I sure hope a more serious effort happens with vB3.

  11. #11
    Former vBulletin Developer Scott MacVicar is on a distinguished road
    Join Date
    Dec 2000
    Location
    Reading, UK
    Posts
    13,335
    Blog Entries
    1
    Well what an old thread.

    But i've been working on it over the weekend
    http://validator.w3.org/check?uri=ht...com%2Fforum%2F but this is on the vB2 style since its what we have at the moment.
    Scott MacVicar

    My Blog | Twitter

  12. #12
    Senior Member Orfejs is on a distinguished road Orfejs's Avatar
    Join Date
    Feb 2003
    Location
    L.A.
    Posts
    246
    Scott MacVicar
    Nice to know you've cleaned it. It took some time ...
    A fish in the sea is not thirsty. WebMaxtor.com

+ Reply to Thread

Similar Threads

  1. HTML & Text templates
    By MisterPopularity in forum vBulletin Suggestions and Feedback
    Replies: 0
    Last Post: Sun 4th Jan '04, 1:48pm
  2. php-html to vB templates - $
    By kennethj in forum PHP & HTML Questions
    Replies: 0
    Last Post: Fri 3rd Jan '03, 7:42am
  3. possible html errors in templates
    By Jake Bunce in forum vBulletin 2 Suggestions and Feedback
    Replies: 5
    Last Post: Wed 19th Dec '01, 3:05pm
  4. Relationship between html, templates and php
    By bg63 in forum PHP & HTML Questions
    Replies: 0
    Last Post: Sun 30th Sep '01, 3:39am
  5. Templates & Html
    By lnterceptor in forum vBulletin Templates, Graphics & Styles
    Replies: 18
    Last Post: Fri 9th Mar '01, 1:25pm

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts