FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

What is RSS Feed?

 


Jerome_vZ
What exactly is an RSS feed and how can someone integrate an RSS feed from one site to the next? Is there anyone out there that can explain this as easy as possible. Im very much interested in how this thing works.

I here so much about it, and people saying they have rss on there site ( i know what it does ) I just dont know how its created and how to make it function on other sites.

RSS feed just feeds information from one site to the next. Any text or images from one site will get updated auto. on the site with the RSS feed on it. I understand that whole process but would like it if someone could break it down a little more for me if thats possible

Thanks,
- Jerome
brutal_sound
RSS = XML file, which consists your RSS news in certain format

This is an example of RSS [xml] file in 1.0 standart (RSS 1.0)
Code:
<?xml version="1.0"?>
 
<rdf:RDF
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns="http://purl.org/rss/1.0/">
 
 <channel rdf:about="http://www.xml.com/xml/news.rss">
   <title>XML.com</title>
   <link>http://xml.com/pub</link>
   <description>
     XML.com features a rich mix of information and services
     for the XML community.
   </description>
   <image rdf:resource="http://xml.com/universal/images/xml_tiny.gif" />
   <items>
     <rdf:Seq>
       <rdf:li rdf:resource="http://xml.com/pub/2000/08/09/xslt/xslt.html" />
       <rdf:li rdf:resource="http://xml.com/pub/2000/08/09/rdfdb/index.html" />
     </rdf:Seq>
   </items>
   <textinput rdf:resource="http://search.xml.com" />
 </channel>
 
 <image rdf:about="http://xml.com/universal/images/xml_tiny.gif">
   <title>XML.com</title>
   <link>http://www.xml.com</link>
   <url>http://xml.com/universal/images/xml_tiny.gif</url>
 </image>
 
 <item rdf:about="http://xml.com/pub/2000/08/09/xslt/xslt.html">
   <title>Processing Inclusions with XSLT</title>
   <link>http://xml.com/pub/2000/08/09/xslt/xslt.html</link>
   <description>
    Processing document inclusions with general XML tools can be
    problematic. This article proposes a way of preserving inclusion
    information through SAX-based processing.
   </description>
 </item>
 
 <item rdf:about="http://xml.com/pub/2000/08/09/rdfdb/index.html">
   <title>Putting RDF to Work</title>
   <link>http://xml.com/pub/2000/08/09/rdfdb/index.html</link>
   <description>
    Tool and API support for the Resource Description Framework
    is slowly coming of age. Edd Dumbill takes a look at RDFDB,
    one of the most exciting new RDF toolkits.
   </description>
 </item>
 
 <textinput rdf:about="http://search.xml.com">
   <title>Search XML.com</title>
   <description>Search XML.com's XML collection</description>
   <name>s</name>
   <link>http://search.xml.com</link>
 </textinput>
</rdf:RDF>


And here is an example of an RSS 2.0 file.
Code:
<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>Liftoff News</title>
    <link>http://liftoff.msfc.nasa.gov/</link>
    <description>Liftoff to Space Exploration.</description>
    <language>en-us</language>
    <pubDate>Tue, 10 Jun 2003 04:00:00 GMT</pubDate>
    <lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <generator>Weblog Editor 2.0</generator>
    <managingEditor>editor@example.com</managingEditor>
    <webMaster>webmaster@example.com</webMaster>
 
    <item>
      <title>Star City</title>
      <link>http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp</link>
      <description>How do Americans get ready to work with Russians aboard the
        International Space Station? They take a crash course in culture, language
        and protocol at Russia's Star City.</description>
      <pubDate>Tue, 03 Jun 2003 09:39:21 GMT</pubDate>
      <guid>http://liftoff.msfc.nasa.gov/2003/06/03.html#item573</guid>
    </item>
 
    <item>
      <title>Space Exploration</title>
      <link>http://liftoff.msfc.nasa.gov/</link>
      <description>Sky watchers in Europe, Asia, and parts of Alaska and Canada
        will experience a partial eclipse of the Sun on Saturday, May 31st.</description>
      <pubDate>Fri, 30 May 2003 11:06:42 GMT</pubDate>
      <guid>http://liftoff.msfc.nasa.gov/2003/05/30.html#item572</guid>
    </item>
 
    <item>
      <title>The Engine That Does More</title>
      <link>http://liftoff.msfc.nasa.gov/news/2003/news-VASIMR.asp</link>
      <description>Before man travels to Mars, NASA hopes to design new engines
        that will let us fly through the Solar System more quickly.  The proposed
        VASIMR engine would do that.</description>
      <pubDate>Tue, 27 May 2003 08:37:32 GMT</pubDate>
      <guid>http://liftoff.msfc.nasa.gov/2003/05/27.html#item571</guid>
    </item>
 
    <item>
      <title>Astronauts' Dirty Laundry</title>
      <link>http://liftoff.msfc.nasa.gov/news/2003/news-laundry.asp</link>
      <description>Compared to earlier spacecraft, the International Space
        Station has many luxuries, but laundry facilities are not one of them.
        Instead, astronauts have other options.</description>
      <pubDate>Tue, 20 May 2003 08:56:02 GMT</pubDate>
      <guid>http://liftoff.msfc.nasa.gov/2003/05/20.html#item570</guid>
    </item>
  </channel>
</rss>
jylan
It is fairly easy to create an RSS feed if you are using a CMS like Wordpress, Textpattern or anything else, in fact they create one automatically. However, if you don't use a CMS it is a bit harder to create an RSS feed because you must know how to code one.

If you could be a little bit more specific in what you want to know maybe i could help you a bit more.
minik
Have a look at www.simplepie.org. My friend uses it for his site: www.ntugo.com. I haven't used it myself but I think what it does is it gets the RSS feed URL and displays the RSS feed on a page of your choice.
jabapyth
http://feedburner.com is a great tool for managing your rss feeds.
losarjho
RSS is a standard for distribute news in internet.

It's based in XML with its own structure.
kuclukzz
hI gUYS...can we make rss web with cms like Joomla or Mambo ?? because i am learning that cms right now..?
SlowWalkere
There are probably some good pre-made extensions you could use for Joomla or Mambo to create a feed for your site. The Joomla! Extension Directory shows 34 results for RSS Feeds. Not sure how good they are... but I'm sure there's something in there that works.

If you're up to coding your own extension, it's pretty easy to make a php script to pull information out of your database and create an RSS feed on the fly.

I'm working on a project in CMS Made Simple and wrote this short script to dynamically create a feed. CMSMS uses Smarty templates to render content, so the script comes in two parts...

Here's a link to the generated feed: Recent Lesson Plans (note the site is still in dev, so there's not a lot of content there).

The xml template is for a barebones feed with all the necessary info. Write a script to pull the relevant information out of your database, put it into a template like the one below, and you should be good to go.

The PHP script that generates the feed:
Code:
      $artArray = array();
      
      $query = "SELECT * FROM " . cms_db_prefix() . "module_articles LIMIT 0,10";
      
      $result = $db->Execute($query);
      
      while ($row = $result->FetchRow())
      {
         $onerow = new stdClass();
         
         // Set up the basic article information in the array
         $onerow->id = $row['article_id'];
         $onerow->title = $row['article_title'];
         $onerow->description = $row['description'];
         $onerow->morelink = $this->CreateFrontEndLink($id, $returnid, 'viewarticle', 'Read the Entire Article',
                                            array($onerow->$id), '', true, true, '', false, 'viewarticle/'
                                            . $onerow->id . '/' . $this->getReturnid('view'));
         
         $artArray[] = $onerow;
      }

   $this->smarty->assign('feed_title', 'Babel - Recent Lesson Plans');
   $this->smarty->assign('feed_desc', 'This feed contains recent lesson plans submitted by users at Babel.  Browse the catalog, then
                     submit some lesson plans of your own!');
   $this->smarty->assign('page_link', 'http://walkere.frih.net/teach/');
   $this->smarty->assign('feed_link', 'http://walkere.frih.net/teach/feeds/plans-feed.xml');
   
   $smarty->assign_by_ref('items', $artArray);
   $smarty->assign('itemcount', count($artArray));
   
   echo $this->ProcessTemplate('feed.tpl');


That gets sent to the template:
Code:
<?xml version='1.0'?>

<rss version='2.0' xmlns:atom='http://www.w3.org/2005/Atom'>

<channel>

   <title>{$feed_title}</title>
   <atom:link href='{$feed_link}' rel='self' type='application/rss+xml' />
   <link>{$page_link}</link>
   <description>{$feed_desc}</description>

   {foreach from=$items item=record}
   <item>
      <guid>{$record->morelink}</guid>
      <title>{$record->title}</title>
      <link>{$record->morelink}</link>
      <description>{$record->description}</description>
   </item>
   {/foreach}
</channel>

</rss>
Related topics

RSS feed problem
RSS feed question
Site Addon: RSS Feed
RSS Feed Update Issue
try to parse RSS Feed?

Is it Possible to write your own Site Map
Free cartoon RSS feed?
RSS feed for the forum
RSS feed to my site not working
Getting RSS feeds to appear on a page

about RSS feeds
[php] can't display rss feeds using rss2html.php
How to show RSS feeds in the forum Signature
RSS feeds for forums
RSS Generator script
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.