1
My changes to get SmartFAQ 1.08 to validate for CSS level 2 and XHTML 1.0 Transitional are shown below -- under XOOPS 2.3.2 and PHP5.
SmartFAQ 1.08 Module
smartfaq_index.html (template)
NEW - fixing misplaced semicolon removed 9 errors!
<div class="sf_collaps_title"><a href='#' onclick="toggle('toptable'); toggleIcon('toptableicon');"><img id='toptableicon' src='<{$xoops_url}>/modules/smartfaq/images/icon/close12.gif' alt='' /></a> <{$lang_categories_summary}></div>
OLD
<div class="sf_collaps_title"><a href='#' onclick="toggle('toptable'); toggleIcon('toptableicon')";><img id='toptableicon' src='<{$xoops_url}>/modules/smartfaq/images/icon/close12.gif' alt='' /></a> <{$lang_categories_summary}></div>
Note: Also, in order to prevent the page from scrolling to the top when lists are expanded or collapsed (toggled), I replaced href='#' with href='javascript:void(0)' in this template and the smartfaq_lastfaqs.html (template), as well as the 'javascript:;' in the smartfaq_category.html (template).
smartfaq_category.html (template)
NEW
<!-- END DYNAMIC BLOCK -->
<tr>
<td></td>
</tr>
</table>
OLD
<!-- END DYNAMIC BLOCK -->
<tr>
</tr>
</table>
smartfaq_singlefaq.html (template)
NEW
<div class="itemInfo">
<{if $display_categoryname}>
<div class="sf_faq_head_cat">
<span class="itemPoster">
[ <a href="<{$xoops_url}>/modules/smartfaq/category.php?categoryid=<{$faq.categoryid}>"><{$faq.categoryname}></a> ]
</span>
</div>
<{/if}>
<div class="sf_faq_head_who">
<span class="itemPoster">
<{$faq.who_when}> (<{$faq.counter}> <{$lang_reads}>)
</span>
</div>
</div>
OLD
<div class="itemInfo">
<span class="itemPoster">
<{if $display_categoryname}>
<div class="sf_faq_head_cat">
[ <a href="<{$xoops_url}>/modules/smartfaq/category.php?categoryid=<{$faq.categoryid}>"><{$faq.categoryname}></a> ]
</div>
<{/if}>
<div class="sf_faq_head_who">
<{$faq.who_when}> (<{$faq.counter}> <{$lang_reads}>)
</div>
</span>
</div>
smartfaq_index.html (template)
NEW
<!-- End categories loop -->
<tr>
<td></td>
</tr>
</table>
OLD
<!-- End categories loop -->
<tr>
</tr>
</table>
Blocks Administration
Needed to replace all occurrences of simple ampersand, for example, in "Recent Q&A List" title, with & a m p ;
That change is not visible on web page after the edit; but can be seen in the page's source code.