Reply
RSS Reading Kinda Works, Help
Old 07-25-2008, 01:10 AM RSS Reading Kinda Works, Help
Galaxian's Avatar
Dingleberry!

Posts: 544
Name: Rich
Location: United Kingdom
This RSS reader script I'm using works with some RSS feeds however, it has trouble with feeds like this:

http://www.lineage.com/news/atom.xml

Example of one that works is:

http://feeds.feedburner.com/aionnewsen?format=xml

Code is:

PHP Code:
function RSS_RetrieveLinks($url)
{
    global 
$RSS_Content;

    
$doc  = new DOMDocument();
    
$doc->load($url);

    
$channels $doc->getElementsByTagName("channel");
    
    
$RSS_Content = array();
    
    foreach(
$channels as $channel)
    {
        
$items $channel->getElementsByTagName("item");
        foreach(
$items as $item)
        {
            
$y RSS_Tags($item1);    // get description of article, type 1
            
array_push($RSS_Content$y);
        }
         
    }

}


function 
RSS_Links($url$size)
{
    global 
$RSS_Content$cellbg2;

    
$page "";

    
RSS_RetrieveLinks($url);
    if(
$size 0)
        
$recents array_slice($RSS_Content0$size);

    foreach(
$recents as $article)
    {
        
$type $article["type"];
        if(
$type == 0) continue;
        
$title $article["title"];
        
$link $article["link"];
        
$page .= "<tr><td".(($count 2)? " style=\"background: #".$cellbg2.";\"":"")."><a href=\"".$link."\">".$title."</a></td></tr>\n";
        
$count ++;            
    }

    return 
$page;
    

Suggestions?
__________________
Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
When You Register, These Ads Go Away!
     
Old 07-28-2008, 02:44 PM Re: RSS Reading Kinda Works, Help
Galaxian's Avatar
Dingleberry!

Posts: 544
Name: Rich
Location: United Kingdom
*sigh* bump
__________________
Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
Old 08-11-2008, 09:56 AM Re: RSS Reading Kinda Works, Help
Skilled Talker

Posts: 62
Try Magpie RSS...

I've used it twice and never had a problem. And yes it works with atom feeds.

Pod.
just_a_pod is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to RSS Reading Kinda Works, Help
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13461 seconds with 13 queries