1
My changes to get Headlines 1 (versus the newer module xhld 3.08) to validate for CSS level 2 and XHTML 1.0 Transitional are shown below. (Headlines 1 had already been working under XOOPS 2.3.2 and PHP5. Also, fopen had been replaced with curl code, as noted elsewhere.)
Headlines 1 module
xoopsheadline_block_rss.html (template)
NEW - provides same line space between headlines lists but no longer a line space after a list's title.
<{foreach item=feed from=$block.feeds}>
<br /><div><{$feed}></div>
<{/foreach}>
OLD
<{foreach item=feed from=$block.feeds}>
<p><{$feed}></p>
<{/foreach}>
headline_block.html (file)
NEW
<{if $items[i].title != ""}>
<li><a href="<{$xoops_url}>/modules/xoopsheadline/index.php?id=<{$site_id}>#<{$items[i].link|regex_replace:"/[\/\?\=\~]/":"_"}>"><{$items[i].title}></a></li>
<{/if}>
OLD
<{if $items[i].title != ""}>
<li><a href="<{$xoops_url}>/modules/xoopsheadline/index.php?id=<{$site_id}>#<{$items[i].link}>"><{$items[i].title}></a></li>
<{/if}>
xoopsheadline_feed.html (template)
NEW
<tr class="head">
<td colspan="3"><a id="<{$items[i].link|regex_replace:"/[\/\?\=\~]/":"_"}>"></a><a href="<{$items[i].link}>" target="_blank"><{$items[i].title}></a></td>
</tr>
OLD
<tr class="head">
<td colspan="3"><a id="<{$items[i].link}>"></a><a href="<{$items[i].link}>" target="_blank"><{$items[i].title}></a></td>
</tr>