1
jph000
SmartFAQ 1.08 XHTML Validation
  • 2009/2/7 21:55

  • jph000

  • Just popping in

  • Posts: 60

  • Since: 2004/8/2 2


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>&nbsp;<{$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>&nbsp;<{$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">
[&nbsp;<a href="<{$xoops_url}>/modules/smartfaq/category.php?categoryid=<{$faq.categoryid}>"><{$faq.categoryname}></a>&nbsp;]
</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">
[&nbsp;<a href="<{$xoops_url}>/modules/smartfaq/category.php?categoryid=<{$faq.categoryid}>"><{$faq.categoryname}></a>&nbsp;]
</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.

2
jph000
Re: SmartFAQ 1.08 XHTML Validation
  • 2009/2/10 1:20

  • jph000

  • Just popping in

  • Posts: 60

  • Since: 2004/8/2 2


Additional note for smartfaq 1.08

images/smartfaq_logo.png was corrupt in the released package.

Login

Who's Online

171 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 171


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits