1
ralf57
Xhtml 1.0 validation pic only in validated pages???
  • 2004/7/9 12:13

  • ralf57

  • Quite a regular

  • Posts: 231

  • Since: 2003/2/3 1


I've finally built a Xhtml 1.0 validated home page,but the other pages don't validate yet!
I've put the code provided by w3c site in theme.html but the validation pic is shown in all the pages,even if they are not validated.
I wish to show this pic only for validated pages.
Have you got any suggestion to do this?
Thanks in advance,ralf.

2
Mithrandir
Re: Xhtml 1.0 validation pic only in validated pages???

Best I can think of is to put the w3c code in a block and set the block visible only in the modules, you know validate.

3
ralf57
Re: Xhtml 1.0 validation pic only in validated pages???
  • 2004/7/9 16:18

  • ralf57

  • Quite a regular

  • Posts: 231

  • Since: 2003/2/3 1


Quote:
Best I can think of is to put the w3c code in a block and set the block visible only in the modules, you know validate


Thank you Mith,
this is the solution i also had in mind...
but it should be more elegant to have the pics switching at
the bottom of the page instead of in a block

4
Herko
Re: Xhtml 1.0 validation pic only in validated pages???
  • 2004/7/9 16:29

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


The problem with that is that every page needs to be validated as it is rendered. This means that the load time of the page is probably near to 1 minute, per page...

Herko

5
ralf57
Re: Xhtml 1.0 validation pic only in validated pages???
  • 2004/7/9 17:00

  • ralf57

  • Quite a regular

  • Posts: 231

  • Since: 2003/2/3 1


You're right,
on-the-fly validation is not the right way!!!
I'll adopt the blocks' solution.
Nice xoopsing!

6
intel352
Re: Xhtml 1.0 validation pic only in validated pages???
  • 2004/7/9 18:25

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


you could add php code to the smarty theme.html, have it validate the page on a set basis (maybe once a day or week or month or just once, period). and display the image until a page doesn't validate.

that's assuming that it's possible to detect via php whether or not a page validated. i don't know the validation process, but i'm assuming you could have the script open a link to the validation script or server, and wait for the results, and store info in the database maybe, to let the script know whether or not the page is validated


or maybe better is just an admin-side module that could loop through all navigatable, local links on your site (similar to a search bot spidering your page), so that it only validates when an admin runs the validation script.

might be a good project for someone with time on their hands

Login

Who's Online

409 user(s) are online (303 user(s) are browsing Support Forums)


Members: 0


Guests: 409


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits