Forums

Importing RSS and cfrom plugin problem (1 post)

  1. tino25
    Member
    Posted 5 years ago #

    When I activate the cform plugin I'm losing footer of my page. It is because of my code in sidebar:

    <?php
    // RSS FEEDS
    @require_once('magpie_rss/rss_fetch.inc');

    $rss_feed = array(
    array(
    'name' => 'IT',
    'url' => 'http://www.blabla.pl/rss1.xml'),
    array(
    'name' => 'Polish Market',
    'url' => 'http://www.blabla.pl/rss4.xml'),
    array(
    'name' => 'Economic',
    'url' => 'http://www.blabla.pl/rss2.xml'),
    array(
    'name' => 'Medical',
    'url' => 'http://www.blabla.pl/rss3.xml')
    );

    // Display
    foreach ($rss_feed as $feed)
    {
    // Fetch news
    $rss = fetch_rss($feed['url']);

    echo "<div style='padding-bottom:5px'>";
    //echo "<p style='padding:0; font-weight:bold'>{$feed['name']}</p>";

    // Get the latest 2 news from each category
    foreach ($rss->items as $key => $item)
    {
    if ($key < 1)
    {
    echo "<p style='padding:0; line-height:12px'><span style='font-weight:bold'>{$feed['name']}</span>: {$item['title']}</p>";

    echo "<p style='padding-bottom:3px; text-align:right; font-size:10px; color:#777'>".date('m-d-Y', $item['date_timestamp'])."</p>";
    }
    }

    echo "</div>";
    }
    ?>

    Can somebody tell me what's going on? Why cform is not cooperating with this?

    If there is no cform everything is ok.

Topic Closed

This topic has been closed to new replies.

About this Topic