RSS Question - Pull in rss feed without switching sites

Discussion in 'HTML & Website Design' started by wdstuff54, Nov 8, 2007.

  1. #1
    Hi All -

    I've seen on various sites what seems to be RSS feeds (from AP for example) that when you click on them the content is pulled from the other site and loads on the site which has the RSS embedded. Take yahoo.com for example, half way down the page they have options for In the News, World, Local, Finance. When you click on any of them the content is pulled in from AP for the individual articles but loads on the yahoo site.

    Any ideas?

    Thanks!
     
    wdstuff54, Nov 8, 2007 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You have the option of using an iframe for the content or simply having a small script that reads the content and enters it into your site but in both cases you need to be careful of breaching copyright.
     
    AstarothSolutions, Nov 9, 2007 IP
  3. QiSoftware

    QiSoftware Well-Known Member

    Messages:
    805
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    158
    #3
    I use Java applets to pull in AP headlines [WiredPages] and then link over to the AP site for the full story. Headlines are okay to use. Full content could cause problems.

    Q...
     
    QiSoftware, Nov 9, 2007 IP
  4. wdstuff54

    wdstuff54 Well-Known Member

    Messages:
    639
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Thanks for the info!
     
    wdstuff54, Nov 9, 2007 IP
  5. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I wouldn't do that. I'd use a combination of PHP and JavaScript (independently of each other, ironically) here. Use an RSS parser like the one that deathshadow wrote (I've tweaked it a bit, the link is below), and then use JavaScript to create an "accordion-style" feed reader (basically create a tabbed folder, with the current "tab" and its contents visible, but the others hidden; of course this would allow for other tabs to be selected, which would then hide the previous "current" tab's contents). That way you have the page content, but if scripting is disabled or not supported, the content is still readily available.

    Here's the parser I mentioned earlier. The site is not live yet (I haven't finished it yet), but the page is in a folder that will be taken down when the site does go live. (Which is the sole reason I'm posting it as plain text, not an actual clickable link.)
    minimalmarkup.com/temp/rss/
     
    Dan Schulz, Nov 10, 2007 IP
    wdstuff54 and wilfordsy like this.
  6. wdstuff54

    wdstuff54 Well-Known Member

    Messages:
    639
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    110
    #6
    Hey Dan -

    Great advice. This was driving me nuts. Thanks so much! Repped!
     
    wdstuff54, Nov 12, 2007 IP
  7. wilfordsy

    wilfordsy Peon

    Messages:
    203
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I've always wondered about this when seeing other blogs show headlines from other well known sites like Wired or Digg.

    Do you know of any plugins for Wordpress for this? Or do I really have to manually code this?
     
    wilfordsy, Nov 13, 2007 IP
  8. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I haven't found a WordPress plugin, but if I can get permission from my local newspaper to syndicate their content on my personal site, I assure you I will be looking for one.
     
    Dan Schulz, Nov 13, 2007 IP
  9. ellyana

    ellyana Banned

    Messages:
    228
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    great post, Dan. Hey, we'll wait more from you ..

    I'm referring to the post: "All You Need to Know About SEO"
    all the best,
     
    ellyana, Nov 16, 2007 IP
  10. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #10
    (off-topic: a private message would have been better, but thank you nonetheless)
     
    Dan Schulz, Nov 16, 2007 IP