PHP-Nuke and the validator

Post here if your topic is about CSE HTML Validator but doesn't fit in another forum.

PHP-Nuke and the validator

Postby nextgen » Fri Nov 10, 2006 4:49 pm

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.
nextgen
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 6
Joined: Thu Nov 09, 2006 7:47 pm

Postby MikeGale » Fri Nov 10, 2006 5:45 pm

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.)
User avatar
MikeGale
Rank VI - Professional
Rank VI - Professional
 
Posts: 612
Joined: Mon Dec 13, 2004 2:50 pm
Location: Tannhauser Gate

Postby nextgen » Fri Nov 10, 2006 6:25 pm

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.
nextgen
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 6
Joined: Thu Nov 09, 2006 7:47 pm

Postby MikeGale » Sun Nov 12, 2006 3:21 pm

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.
User avatar
MikeGale
Rank VI - Professional
Rank VI - Professional
 
Posts: 612
Joined: Mon Dec 13, 2004 2:50 pm
Location: Tannhauser Gate

Postby nextgen » Mon Nov 13, 2006 4:07 pm

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.
nextgen
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 6
Joined: Thu Nov 09, 2006 7:47 pm

Postby MikeGale » Tue Nov 14, 2006 6:05 pm

I'd really like to see a summary of the progress, but don't expect to have time to get involved in the editing.
User avatar
MikeGale
Rank VI - Professional
Rank VI - Professional
 
Posts: 612
Joined: Mon Dec 13, 2004 2:50 pm
Location: Tannhauser Gate

Postby nextgen » Wed Nov 15, 2006 3:07 am

will do my friend, i will post with each major success or bump in the road. :D
nextgen
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 6
Joined: Thu Nov 09, 2006 7:47 pm


Return to Other CSE HTML Validator

Who is online

Users browsing this forum: No registered users and 1 guest