Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
janeuk
Regular
Regular



Joined: Oct 13, 2007
Posts: 61

PostPosted: Fri Mar 14, 2008 9:36 am Reply with quote

Hi,
I have spent ages trying to work this out but I don't really understand what I have to do to fix it, documentation I have read doesn't really make much sense to me! I have a few of these parsing errors on the W3C validator related to the same line as shown below. Please can someone help me fix this, because I really don't know how to Smile Thank you for any help! Jane

Line 61, Column > 80: XML Parsing Error: Opening and ending tag mismatch: br line 61 and a.…[/b]td style="background-image:url(themes/Anagram/images/bckgrd.gif); background-…✉

Line 61, Column > 80: XML Parsing Error: Opening and ending tag mismatch: img line 61 and center.
…td style="background-image:url(themes/Anagram/images/bckgrd.gif); background-…

The code as seen in the theme.php is here below..'<td style="background-image:url(themes/Anagram/images/bckgrd.gif); background-color: #330033; border: 2px; border-style: none solid none; border-color: #FFFFFFF; width: 160px">';
blocks('left');
echo '</td>'

.'<td width="100%">';
}
 
View user's profile Send private message
gotcha
Regular
Regular



Joined: Mar 14, 2005
Posts: 91

PostPosted: Fri Mar 14, 2008 10:02 am Reply with quote

I'm betting that those errors come from one of your blocks.
The br and img tags are singleton tags and need to be escaped.
Example
Code:


<br>
should be
<br />

<img src="...">
should be
<img src="..." />


The hard part will be finding out which block is producing the offending tags.
Good luck Smile
 
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Fri Mar 14, 2008 10:05 am Reply with quote

It's kind of hard to tell from what you have posted. Do you have a link to the page?

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
janeuk







PostPosted: Tue Mar 18, 2008 11:11 am Reply with quote

Yes, its http://www.destinydreams.org

Thanks Smile
 
Gremmie







PostPosted: Tue Mar 18, 2008 6:00 pm Reply with quote

Thanks. I ran it through the validator at [ Only registered users can see links on this board! Get registered or login! ] and there are many problems. There are tags with illegal attributes (table background, etc), closing tags missing, etc. It probably would not be that hard to fix those, though.
 
janeuk







PostPosted: Tue Mar 18, 2008 6:50 pm Reply with quote

Any clue how to actually fix it, thats the part I'm stumped on Smile Thanks
 
Gremmie







PostPosted: Tue Mar 18, 2008 7:56 pm Reply with quote

Well, in general, you just have to look at the errors of the validator and then find where in the theme (or elsewhere) those are getting generated at. The errors could also be coming from blocks. Always fix the first few and then revalidate, because many of the errors are just cascading errors that go away when you fix the first few.
 
janeuk







PostPosted: Wed Mar 19, 2008 5:37 am Reply with quote

Ok, thanks Gremmie, yes, some of these errors are not in theme, I think they are to do with the friendfinder I have installed. I'll have another go at it but is there a quick way to search all the files to find the error code, rather than have to open each file individually and then search. I'm using CPanel. Hope that makes sense Smile
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Wed Mar 19, 2008 5:42 am Reply with quote

using cpanel to edit files? Uggghh. Yeah, that will take awhile. You may want to FTP your files down locally and then use edit them there using something like TextPad or Notepad++ (cannot remember how many plus signs but do NOT use the standard Windows notepad - it can mess up your files).

Unfortunately, correctly compliance issues in a module is not as easy as "search all the files". That could probably work for code like <br> and <hr>, but image tags, broken table structures, etc, will still require you to either go through the code proactively and correct, or use the method Gremmie is describing.

Believe me, I've done a ton of this work in order to get RavenNuke(tm) where it is today and it takes work.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©