MyBB Community Forums

Full Version: Validating MyBB for XHTML
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I see that this page in my forum is not validating (no special code mod by me, so this is a default code issue.)


line 103 ..

XHTML isn't happy with the link:
<a href="misc.php?action=rules&fid=7">How to get your post answered</a>
I think you need to encode that "&" symbol. In fact, this issue with links that contain "&" happens on many MyBB pages.

line 210 .. the input box is not XHTML standard, it should be closed at />

line 226 .. tidy reports that a problem with value "go"
Quote:a href="misc.php?action=rules&fid=7">How to get your post answered</a>
Quote:<a href="misc.php?action=rules&fid=7">How to get your post answered</a>
yeah actually that's in the misc_help_section_bit template

in case u wanna fix it ur self, just replace & with &amp;, umm dont worry about the other & over mybb, they are all using &amp; this one managed to escapeToungue

Quote:line 210 .. the input box is not XHTML standard, it should be closed at />
which input box?
/> is used all over mybb, in case one is missed please specify where.

regards
Hi,

I don't recall the page which I saw the above errors. Try going to a page to enter a new reply. You'll see many "<input type" tags that are not clodes properly (for XHTML). I'll go through my templates and try to clean them up anyhow.

Thanks
Yes. We know of the problem and (as far as I know) we want XHTML compatibility. Please be patient Smile
Valid and proper XHTML and CSS will be implemented in a later version of MyBB. It will come together with a template system rewrite. We do not know when we will be implementing this, but it is definitely one of the higher-priority things.
Far enough.

In the meantime, could you assist me with this html bug?

I've been fixing up the xhtml throughout my templates. I'm now working on:
http://www.idevgames.com/dim3/usercp.php

This page isn't validating because there is a missing <tr>

<!-- end: usercp_nav_misc -->
</table>
</td>

<!-- end: usercp_nav -->
<td valign="top">
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<td class="thead" colspan="3"><strong>Brief Account Summary</strong></td>
</tr>
<tr>
<!-- start: usercp_currentavatar -->
<td class="trow1" rowspan="5" valign="middle" align="center" width="1"><img src="./uploads/avatars/avatar_1.gif" alt="Carlos Camacho" /></td>
<!-- end: usercp_currentavatar -->
Seems like it should go just before <!-- end: usercp_nav -->. The problem is, I can't find the template to insert the <tr> I looked and looked but it is like finding a needle in a hay stack. Sad

Cheers
I think it's just usercp.
Are you sure that is the only "&" that you missed?

For example:
http://www.idevgames.com/dim3/memberlist.php

Here is a little snippet...
<td class="trow1"><a href="member.php?action=profile?uid=1"><font color="green"><b><i>Carlos Camacho</i></b></font></a></td>
<td class="trow2" align="center"><a href="member.php?action=emailuser&uid=1"><img src="images/purl/english/postbit_email.gif" border="0" /></a></td>
<td class="trow1" align="center"><a href="http://www.idevgames.com/" target="_blank"><img src="images/purl/english/postbit_www.gif" border=0></a></td>


The first link is OK. But the second link brings up a validation error. (member.php?action=emailuser&uid=1) I've run into a couple of places that don't validate, and as the last poster said, most are in the UserCP.

BTW, stellar work on this forum software!
Convert & to &amp; and then it should validate in the URL's.

Chris
Moving to general support, as this will be handled at a later stage.