View Full Version : valid xhtml 1.0 help
simonok
04-21-2006, 08:07 AM
I`m trying to get the code valid xhtml 1.0 complient, Ive got the meta tags and javascript tags complient by editing the pgm-realtime_builder.php and pgm-auto_menu.php but I`m stuck on this code - I`m trying to find the table line in all the files on the root but can't find that line. I`ve scanned the pgm-realtime_builder.php because that generated the comments. I have only been playing with the files on the root cus I dont want to break the install. Seems this may take a while to do as I have 64 validation errors but most of them should be fixable even if I do stick with table code instead on divs.
Any idea where the <table> code is generated. Any help would be great.
<!--
################################################## #########################
### PGM-REALTIME-BUILDER ==> START PAGE CONTENT FROM CONTENT EDITOR
################################################## #########################
-->
<table border="0" cellpadding="1" cellspacing="0" width="100%" align="center">
<!-- Content Row 2 ----------------------------------------- -->
simonok
04-21-2006, 10:01 AM
Found the code its part of the actual program in sohoadmin/program/modules/page_editor/save_page so I`ve applied a style onto the table so I can set the width etc so its complient.
now onwards to get the rest done! I dont suppose you have a patch to do this?
Joe Lain
04-21-2006, 10:23 AM
Hi Simonok,
The table tag can be found around line 163 in save_page.php located in the sohoadmin/program/modules/page_editor folder.
Sounds like you know what your doing, but just incase...
When a page is saved, the product creates :
Page_Name.con - content displayed on site(sohoadmin/tmp_content)
Page_Name.regen - content for page editor to read and display(sohoadmin/tmp_content)
Page_Name.php - php file for more seo friendly page links(doc_root)
This might help you along the way. Let me know how this goes for you, we are always trying to improve seo.
Joe Lain
04-21-2006, 10:25 AM
Ooops, looks like you figured it out!
A patch for what?
simonok
04-21-2006, 11:19 AM
Thanks for the heads up, I ment a patch to make the whole system xhtml complient, I have managed to get it html strict complient now, but I`m not using any of the modules. I think I only edited about 4 files to do this, so wouldnt it be easy for soholaunch to do what I did but better - I`ve just put everything to lowercase and removed the messy markup ie table widths and code like <div align=center>.
One other thing if I use a <h1> or <p> tag the editor coverts it to uppercase and this makes the code non complient, do you know how to stop that?
One other thing you mentioned the seo friendly links but mine dont seem friendly at all my home page is http://www.simonstratford.com/index.php?pr=Home_Page - how do i implement it so its better? something like home_page.html now thats friendly.
Dont get me wrong I`m not knocking anything, I`m lovin the ease of use.
I`ve stuck up my very simple design using at http://www.simonstratford.com I`m just playing at the moment. Also the w3c validator link
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.simonstratford.com%2F&charset=%28detect+automatically%29&doctype=Inline
Joe Lain
04-21-2006, 01:04 PM
One other thing if I use a <h1> or <p> tag the editor coverts it to uppercase and this makes the code non complient, do you know how to stop that?
I will check this out and get back to you. Most likely just a change in the insert.
One other thing you mentioned the seo friendly links but mine dont seem friendly at all my home page is http://www.simonstratford.com/index.php?pr=Home_Page - how do i implement it so its better? something like home_page.html now thats friendly.
You can use http://www.simonstratford.com/Home_Page.php, does that work?
I`ve stuck up my very simple design using at http://www.simonstratford.com I`m just playing at the moment.
Very nice looking site! Glad to hear you are liking the product!
simonok
04-21-2006, 01:12 PM
Oh I didnt realise that http://www.simonstratford.com/home_page.php would work, so I suppose I could setup google sitemap and point it at whatever pages I have. I did have a play with mambo and joomla they used mod_rewrite to make pages with .html mind you I hated the way they worked.
Ive not even started using the other modules cus I`m holding off getting a licence until I can get the validity right, so at least I know its possible now.
If you can find that info about the uppercase tags then that would make my day!
Cheers
Simon
Joe Lain
04-21-2006, 01:40 PM
I cannot seem to duplicate the uppercase tag issue. Are you saying that the tags look like this : <H1> and <P>? They dont do that for me.
simonok
04-22-2006, 05:24 AM
yea check my site I edited the home page in the editor as html added <h2> hello </h2> (all lower case) and then saved the page
If you then visit the site and view html the headline tags are uppercase, the strange thing is if you edit the page again its still lowercase in the editor.
ss
simonok
04-24-2006, 10:07 AM
Have you shed any light on this? or is it just my install thats doing it?
Joe Lain
04-24-2006, 11:37 AM
Send me a private message with login to the site and I will check it out.
mathetos
06-19-2007, 01:34 AM
simonok, I have also been struggling to do the same thing. My goal has been to have a logical document structure and really clean table-less code. With the latest upgrade you can now include the pgm-promo_boxes.php in your template to override the way soho inserts the content of the #BOX# variables. Unfortuantely, it's been a struggle for me to successfully replace all of the table tags without ruining the php code (I'm no programmer).
Has anyone else successfully made a table-less, clean xhtml site with soho? Any guidance would be appreciated.
~mathetos~
sinclair
06-19-2007, 07:41 PM
Way out of my league here, but would this plugin help?
http://addons.soholaunch.com/plugins/traffic_statistics/soho_tidy
simonok
07-07-2007, 03:54 AM
I decided not to use soholaunch, I have started to use modxcms and i must say its the best free cms system I have ever used in my life.
ss
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.