PHP-Nuke and the validator

Post here if your topic is about CSS HTML Validator but doesn't fit in another forum.
Post Reply
nextgen
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 6
Joined: Thu Nov 09, 2006 6:47 pm

PHP-Nuke and the validator

Post by nextgen »

I want to make my themes for php-nuke html compliant but a bulk of the code is in php and css. Do anyone have any tips or ideas for this project.
User avatar
MikeGale
Rank VI - Professional
Rank VI - Professional
Posts: 721
Joined: Mon Dec 13, 2004 1:50 pm
Location: Tannhauser Gate

Post by MikeGale »

I have developed content generation code that emits valid XHTML. This is not too hard when you do it from the start of a project.

I have also simply not used pre-developed code and rolled my own, several times. This to avoid importing foul mark-up.

Having said the negative things there may be some hope. I suggest:

1) Get to know the code and check whether tag generation is easily fixable. (I have in the past taken large bodies of code, written by others, and transformed it within a few hours. This achieved using multipage search and replace including RegEx search and replace. What is now called refactoring.) It may be that this is all you need to fix the majority of the issues.

2) If you do that and find it does a lot of the job, it is worth contacting the core developers and trying to roll your changes into the master distribution.

3) An approach that I know works is to use tools that scan markup and fix it, before sending it to the browser. I've only done this with .NET and performance might make it impractical for PHP. My obervation is that even with a tool like Chris Lovett's SGMLReader, some custom code is needed.

4) I haven't seen the CSS you're using. With some CSS I have been able to fix it without changing the markup at all, and quickly. With others I've decided the work is just too much and left the bad design. (A widespread problem is CSS that uses fixed font sizes which cannot be changed by the user. These can be time consuming to fix.)
nextgen
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 6
Joined: Thu Nov 09, 2006 6:47 pm

Post by nextgen »

Thanks for the fast reply and i now am sure to atleast upgrade to the standard cse. Your support seems to be top of the line. That is very very hard to find. Thanks my friend. If you do not mind i will post my journey through the valiadtion of php-nuke and maybe it will help other nuke community members will opt to use cse. Again thnks for the fast response.
User avatar
MikeGale
Rank VI - Professional
Rank VI - Professional
Posts: 721
Joined: Mon Dec 13, 2004 1:50 pm
Location: Tannhauser Gate

Post by MikeGale »

Hi nextegen,

I'm a user of CSE who thinks what you are thinking of is a very worthwhile venture. I'd like to see CMS applications produce better markup.

I look forward to seeing some details of how this goes.

It can be hard, so (after you've seen what is possible) I suggest setting easily reachable personal targets.
nextgen
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 6
Joined: Thu Nov 09, 2006 6:47 pm

Post by nextgen »

Thank you my friend and i would be willing to share every step of my results in the forum and i am even willing to share the experience if you would like to help i can grant you access to all files and to be a part of the project.
User avatar
MikeGale
Rank VI - Professional
Rank VI - Professional
Posts: 721
Joined: Mon Dec 13, 2004 1:50 pm
Location: Tannhauser Gate

Post by MikeGale »

I'd really like to see a summary of the progress, but don't expect to have time to get involved in the editing.
nextgen
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 6
Joined: Thu Nov 09, 2006 6:47 pm

Post by nextgen »

will do my friend, i will post with each major success or bump in the road. :D
Post Reply