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}>

<{$feed}>

<{/foreach}>

OLD

<{foreach item=feed from=$block.feeds}>

<{$feed}>


<{/foreach}>

headline_block.html (file)

NEW

<{if $items[i].title != ""}>
  • "><{$items[i].title}>

  • <{/if}>

    OLD

    <{if $items[i].title != ""}>
  • <{$items[i].title}>

  • <{/if}>

    xoopsheadline_feed.html (template)

    NEW


    "><{$items[i].title}>


    OLD


    <{$items[i].title}>


    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

    Who's Online

    392 user(s) are online (320 user(s) are browsing Support Forums)


    Members: 0


    Guests: 392


    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