Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's Collapsing Forums Block
Author Message
derek765
Regular
Regular


Joined: Sep 27, 2012
Posts: 99
Location: Okinawa, Japan

PostPosted: Sun Dec 23, 2012 8:25 am Reply with quote

Trying to make my site completely XHTML Validation error free, and after checking I get these 15 errors for Forum Collapsing Block:

Code:


Line 384, Column 887: document type does not allow element "td" here

…<br />&nbsp;Posts: 5<td align="center">&nbsp;&nbsp;<a href="forum-userprofile-…



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Error Line 384, Column 1040: document type does not allow element "td" here

…border ="0" width ="32" /></a></td><td>&nbsp;<a href="forum-userprofile-3.html…



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Error Line 384, Column 1178: document type does not allow element "td" here

…<br />&nbsp;Posts: 0<td align="center">&nbsp;&nbsp;<a href="forum-userprofile-…



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Error Line 384, Column 1331: document type does not allow element "td" here

…border ="0" width ="32" /></a></td><td>&nbsp;<a href="forum-userprofile-4.html…



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Error Line 384, Column 1467: document type does not allow element "td" here

…<br />&nbsp;Posts: 0<td align="center">&nbsp;&nbsp;<a href="forum-userprofile-…



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Error Line 384, Column 1620: document type does not allow element "td" here

…border ="0" width ="32" /></a></td><td>&nbsp;<a href="forum-userprofile-5.html…



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Error Line 384, Column 1766: document type does not allow element "td" here

…<br />&nbsp;Posts: 0<td align="center">&nbsp;&nbsp;<a href="forum-userprofile-…



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Error Line 384, Column 1919: document type does not allow element "td" here

…border ="0" width ="32" /></a></td><td>&nbsp;<a href="forum-userprofile-6.html…



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Error Line 384, Column 2044: end tag for "td" omitted, but OMITTAG NO was specified

…pan></a>&nbsp;<br />&nbsp;Posts: 0</tr></table></div><br /><div style="text-al…



You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Info Line 384, Column 1916: start tag was here

…f" border ="0" width ="32" /></a></td><td>&nbsp;<a href="forum-userprofile-6.h…

Error Line 384, Column 2044: end tag for "td" omitted, but OMITTAG NO was specified

…pan></a>&nbsp;<br />&nbsp;Posts: 0</tr></table></div><br /><div style="text-al…



You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Info Line 384, Column 1617: start tag was here

…f" border ="0" width ="32" /></a></td><td>&nbsp;<a href="forum-userprofile-5.h…

Error Line 384, Column 2044: end tag for "td" omitted, but OMITTAG NO was specified

…pan></a>&nbsp;<br />&nbsp;Posts: 0</tr></table></div><br /><div style="text-al…



You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Info Line 384, Column 1328: start tag was here

…f" border ="0" width ="32" /></a></td><td>&nbsp;<a href="forum-userprofile-4.h…

Error Line 384, Column 2044: end tag for "td" omitted, but OMITTAG NO was specified

…pan></a>&nbsp;<br />&nbsp;Posts: 0</tr></table></div><br /><div style="text-al…



You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Info Line 384, Column 1037: start tag was here

…f" border ="0" width ="32" /></a></td><td>&nbsp;<a href="forum-userprofile-3.h…

Error Line 384, Column 2044: end tag for "td" omitted, but OMITTAG NO was specified

…pan></a>&nbsp;<br />&nbsp;Posts: 0</tr></table></div><br /><div style="text-al…


But I try changing what most of these say, and it is not working correctly.
[/code]
 
View user's profile Send private message Visit poster's website
neralex
The Mouse Is Extension Of Arm


Joined: Aug 22, 2007
Posts: 1289
Location: Germany

PostPosted: Sun Dec 23, 2012 12:05 pm Reply with quote

If you have modified this block-file, then check file inside the core package and try to compare the code with your changes. If you have not modified the file, then it could be an error in your theme.
 
View user's profile Send private message
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1692
Location: Texas, USA

PostPosted: Sun Dec 23, 2012 12:35 pm Reply with quote

There could be errors that produce a "cascade" of other errors.
I would first fix any html->xhtml errors
<BR> should be
<br />
<IMG SRC="someimage.jpg"> should be
<img src="someimage.jpg" />

At current it's a little hard to see what's occurring on your site due to those issues
 
View user's profile Send private message Visit poster's website
derek765
PostPosted: Sun Dec 23, 2012 7:45 pm Reply with quote

Well here is the only part of the block file I have edited, which what I did was removed the ability to click on the users post number.
and from the looks of the validation errors, seems like most are coming from this area.

Code:


      $newLine = FALSE;
      if ($showTopPosters==2) {
         $content .= '<td align="center">';
         if ($user_avatar == '') {
            $content .= '&nbsp;&nbsp;<a href="modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=' . $user_id . '" ' . $staffTitle . '>'
                  . '<img alt="" src="modules/Forums/images/avatars/noimage.gif" border ="0" width="32" /></a></td>';
         } elseif (stristr($user_avatar, 'http://')) {
            $content .= '&nbsp;&nbsp;<a href="modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=' . $user_id . '" ' . $staffTitle . '>'
                  . '<img alt="" src="' . $user_avatar . '" border ="0" width="32" /></a></td>';
         } else {
            $content .= '&nbsp;&nbsp;<a href="modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=' . $user_id . '" ' . $staffTitle . '>'
                  . '<img alt="" src="modules/Forums/images/avatars/' . $user_avatar . '" border ="0" width ="32" /></a></td>';
         }
      }
      $content .= '<td>&nbsp;<a href="modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=' . $user_id . '" ' . $staffTitle . '>'
            . '<span style="font-weight: bold;">' . $username . '</span></a>&nbsp;<br />&nbsp;'
            . 'Posts: ' . $user_posts . '';
      if (!($cycle % $showTopPostersPerRow) || $cycle == $num_posters) {
         $content .= '</tr>';
      }
      $cycle++;
   }
   $content .= '</table></div><br />';
}

if ($hideLinksFromGuests && !(is_admin($admin) || is_user($user))) {
   $content = strip_tags($content, '<tr><td><img><table><div>');
}
 
nuken
RavenNuke(tm) Development Team


Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Sun Dec 23, 2012 8:12 pm Reply with quote

You removed the closing td.
change
Code:


  . 'Posts: ' . $user_posts . '';


to

Code:


  . 'Posts: ' . $user_posts . '&nbsp;</td>';

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
derek765
PostPosted: Sun Dec 23, 2012 8:32 pm Reply with quote

Didn't even notice that, thank you.
All validation errors fixed.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's Collapsing Forums Block

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 ©