How do i display RSS feeds in my webpage?

Discussion in 'XML & RSS' started by karate_kid007, Oct 16, 2008.

  1. #1
    Hi All,

    Right i havent a clue when it comes to rss unfortunatly but i really want to learn how to display feeds directly on to my page. thing is ive seen some examples via google and it all looks so complicated, and i dont know how to extract the data i want :(

    can someone help me understand this and get the feeds on my site.

    i intent on having several feeds stored in a database and then depending on which page is viewed a specific feed is shown.

    here is one of the links to a feed i intend to use

    http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStore.woa/wpa/MRSS/topsongs/sf=143444/limit=25/rss.xml?partnerId=2003&TD_PARAM=http%3A%2F%2Fclkuk.tradedoubler.com%2Fclick%3Fp%3D23708%26a%3D1515427%26url%3D

    but after this i am lost lol.
    please can all help be explained so a dimwit like myself can understand :D

    many thanks
    kk
     
    karate_kid007, Oct 16, 2008 IP
  2. anshul555

    anshul555 Active Member

    Messages:
    140
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Feeds re available on blogger.typepad.wordpress and myspace.

    I havent seen them on web pages.
     
    anshul555, Oct 16, 2008 IP
  3. ThoughtPunk

    ThoughtPunk Active Member

    Messages:
    1,135
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    78
    #3
    feedburner has a option where you can display rss feeds on pages. Are they your feeds or others?
     
    ThoughtPunk, Oct 16, 2008 IP
  4. jamesicus

    jamesicus Peon

    Messages:
    477
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Feeds can be, and are, used to great benefit on web pages. Refer to:
    All about feed creation and use

    You can check out how I use an example RSS (RDF/XML) Feed on my Web Authoring References & Resources site (sig block below).

    James
     
    jamesicus, Oct 16, 2008 IP
  5. karate_kid007

    karate_kid007 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    hi guys thanks for your replies, these are not my own feed that i want to display but ones from other sources.

    thanks James i will check out the link you gave me cheers
    Luke
     
    karate_kid007, Oct 17, 2008 IP
  6. aslanbash

    aslanbash Well-Known Member

    Messages:
    79
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    108
    #6
    aslanbash, Oct 18, 2008 IP
  7. ThoughtPunk

    ThoughtPunk Active Member

    Messages:
    1,135
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    78
    #7
    ThoughtPunk, Oct 19, 2008 IP
  8. ThoughtPunk

    ThoughtPunk Active Member

    Messages:
    1,135
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    78
    #8
    ThoughtPunk, Oct 19, 2008 IP
  9. k.alana123

    k.alana123 Banned

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    feedburner is another option to make custom URL of feed like www.feedburner.com/ something you like
    or make your site url short via htaccess rewriting
     
    k.alana123, Oct 19, 2008 IP
  10. karate_kid007

    karate_kid007 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    hi all thanks for your replies, i managed to get some feeds working using

    	define("MAGPIE_INPUT_ENCODING", "UTF-8");
    	define("MAGPIE_OUTPUT_ENCODING", "UTF-8");
    	define("MAGPIE_CACHE_DIR", "./magpierss/cache");
    	define("MAGPIE_CACHE_ON", 1);
    	define("MAGPIE_CACHE_AGE", 3600);
    	include_once("./magpierss/rss_fetch.inc");
    	
    	//RSS NEWS FEED SECTION
    	$rss = fetch_rss(\game.xml);
    	$loop_count = 1;
    	foreach ($rss->items as $item){  
    	$href = $item['productUrl'];  
    	$title = $item['name'];  
    	$ref_date = $item['pubdate'];
    	$data = $item['imageUrl'];
    	echo "<br />";  
    	echo "<span style='font-size: 18px; font-family: Arial Black; color: black;'><a href=\"$href\" target='_blank'><u>$title</u></a></span>";  
    	echo "<span style='font-size:14px; font-family:Times New Roman; color:black;'>$data</span><br />";  
    
    PHP:
    this is working fine for urls but i have several xml files on my pc that i have downloaded but for some reason they wont show up on my site, ive set the feed location as

    $rss = fetch_rss(\game.xml);

    as the file is in the same folder as my website but nothing is displayed

    anyone have any ideas
    cheers
    Luke
     
    karate_kid007, Oct 20, 2008 IP
  11. aslanbash

    aslanbash Well-Known Member

    Messages:
    79
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    108
    #11
    and another options is using Rss2Blog
     
    aslanbash, Oct 21, 2008 IP