I just realized that this product (v 1.1.0) causes my pages to fail XHTML validation (
http://validator.w3.org/) with 60+ errors. So here are some steps to fix those errors:
<script></script>
For inline <script></script>, enclose the javascript codes between "<!--" and "//-->". This will make the validator to skip the javascript code.
Example:
Code:
<script type="text/javascript">
<!--
var test = confirm('Test?');
//-->
</script>
Note: error caused by template:
mgc_cb_evo
onClick, onSubmit, onFocus etc
HTML attributes do not use camelCase. It should be "onclick", "onsubmit" and so on.
Note: error caused by template:
mgc_cb_evo_editor
Ampersand (&) inside URLs
Instead of:
Code:
<a href="http://www.yoursite.com/forum/mgc_cb_evo.php?do=view_archives&page=1">Archives</a>
Make it:
Code:
<a href="http://www.yoursite.com/forum/mgc_cb_evo.php?do=view_archives&page=1">Archives</a>
In PHP, calling the built-in function htmlspecialchars() is all you need
Note: error caused by template:
mgc_cb_evo
Invalid attributes (element-specific)
<tr> does not support "width" attribute
Code:
<tr class="alt1" valign="middle" width="100%">
(template
mgc_cb_evo)
Use { checked="checked" } instead of just { checked }. Use double-quote mark instead of single. Same with "selected" and "nowrap".
Code:
<td align="$stylevar[left]" valign="middle" nowrap="nowrap">
(template
mgc_cb_evo_editor)
Other typos (showing corrected text/code only)
functions_mgc_cb_evo.php (line 541)
Code:
$bbcodes .= ' <input type="image" name="clear" class="inlineimg" src="' . $stylevar['imgdir_misc'] . '/mgc_cb_evo/mgc_cb_evo_clear.gif" value="' . $vbphrase['mgc_cb_evo_clear_bbcode'] . '" onclick="return remove_bbcodes();" />';
I hope it'll be fixed in the next version ...