1
jph000
Headlines 1 (xoopsheadline module) XHTML Validation
  • 2009/2/4 23:00

  • jph000

  • Just popping in

  • Posts: 60

  • Since: 2004/8/2 2


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>

2
jph000
Re: Headlines 1 XHTML Validation - delete bug
  • 2009/4/14 3:22

  • jph000

  • Just popping in

  • Posts: 60

  • Since: 2004/8/2 2


Fixed Headlines 1 module delete bug which surfaced under PHP5 and XOOPS 2.3. Deletion of headline entries failed.

~/xoopsheadline/class/headline.php

function delete(&$headline)
{
// if (get_class($headline) != 'xoopsheadlineheadline') {
if (get_class($headline) != 'XoopsheadlineHeadline') {
return false;
}

Login

Username:
Password:

Lost Password? Register now!

Who's Online

68 user(s) are online (45 user(s) are browsing Support Forums)


Members: 1


Guests: 67


heyula,

more...

Donat-O-Meter

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

Latest GitHub Commits