Announcement

Collapse
No announcement yet.

Can anyone tell me why this php code is not pulling the right rss desription?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MrNase
    replied
    You have to use RSS2

    See here: http://www.conflictingviews.com/foru...16,18,17,23,27

    Leave a comment:


  • merk
    replied
    Take a look at the RSS feed that you're using in your browser.

    http://www.conflictingviews.com/foru...16,18,17,23,27

    RSS feeds are not designed for that purpose.

    Leave a comment:


  • Can anyone tell me why this php code is not pulling the right rss desription?

    PHP Code:
        require_once './rss/rss_fetch.inc';

        
    $url 'http://www.conflictingviews.com/forum/external.php?type=rss&forumids=8,16,18,17,23,27' ;
        
    $rss fetch_rss($url);

        if ( 
    $rss and !$rss->ERROR) {
            foreach (
    $rss->items as $item ) {
            echo 
    ' <table class="tborder" cellspacing="0" cellpadding="3" width="100%">';
            echo 
    ' <tr> ';
            echo 
    ' <td class="thead"> ';
            echo 
    ' ' $item[title] . ' ';
            echo 
    ' </td> ';
            echo 
    ' </tr> ';
            echo 
    ' <tr> ';
            echo 
    ' <td class="tcat"> ';
            echo 
    ' <a href="' $item[link] . '">Discuss this topic on our Political Forums</a> ';
            echo 
    ' </td> ';
            echo 
    ' </tr> ';
            echo 
    ' <tr> ';
            echo 
    ' <td class="alt1"> ';
            echo 
    ' ' $item[description] .' ';
            echo 
    ' </td> ';
            echo 
    ' </tr> ';
            echo 
    ' </table> <br /> ';
            
            
    // echo ' <p><a href="' . $item[link] . '">' . $item[title] . ' </a><br / >';
            // echo 'Publish Date: ' . $item[pubdate] . ' <br / >';
            // echo $item[ description ] . ' </p>' ;
            
    }
        } else {
            echo 
    'RSS Error: ' $rss->ERROR ' <br / ><br />' ;
        } 
    It outputs the image below.

    Should it not output the thread content?
    Attached Files

Related Topics

Collapse

Working...
X