Skip to main content
Participant
September 15, 2011
Question

How to Add RSS Feed to Dreamweaver html page

  • September 15, 2011
  • 5 replies
  • 24388 views

I wanted to dipslay RSS feeds in Dreamweaver html pages. To be clear, I am NOT trying to create an RSS feed for my pages. I want to insert RSS feed items from external sites into my html pages. Can anyone explain how to do this. Much appreciated!!!

    This topic has been closed for replies.

    5 replies

    craigp73274661
    Participant
    May 21, 2016

    try this snippit ... edithttp://www.rrs_feed_site.com/index.php?app=core&module=global&section=rss&type=forums&id=1 with your rrs link info...

    [code]

    <?php

        $rss = new DOMDocument();   // Loads a new a RSS document so that it may be processed further on.

      $rss->load('http://www.rrs_feed_site.com/index.php?app=core&module=global&section=rss&type=forums&id=1'); // Specifies the URL for your rss stream

      $feed = array();  // Converts the loaded RSS feed into a dimensional array

      foreach ($rss->getElementsByTagName('item') as $node) { // Gets each array item and converts it to a variable named node.

      $item = array ( // Starts the item array to be used later. The next few lines simple give the array sections names.

      'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,

      'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,

      'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,

      'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue,  );

      array_push($feed, $item);  // Makes sure the array item is set as feed.

      }  $limit = 1;  // The limit for the amount of topics you want outputted(set this to the same as your RSS settings in IPB)

      for($x=0;$x<$limit;$x++) { // Whilst the variable $x is less than the limit the variable will be increased by one.

      $title = str_replace(' & ', ' & ', $feed[$x]['title']); // Calls the title and removes any random characters.

      $link = $feed[$x]['link']; // Calls the link for the thread.

      $description = $feed[$x]['desc']; // Calls the content of the thread to be outputted.

      $date = date('l F d, Y', strtotime($feed[$x]['date'])); // Calls and formats the date to be outputted.

      echo '<div id="topics" class="content">';   // Just a div container for your code.

      echo '<p style="font-size: 16px;"><strong><a href="'.$link.'" title="'.$title.'" style="color:#efedea;">'.$title.'</a></strong><br />'; // Calls on the link and title

      echo '<small><em>Posted on '.$date.'</em></small></p>'; // Calls on the posted date

      echo '<de>'.$description.'</de></div>';  // Calls on the description

      } // End the output of the RSS in readable format.

      ?>

    [/code]

    Participant
    November 9, 2011

    Since posting this I have found a solution, and it's called CaRP and here is a link to the site for anyone who has the same issue: http://www.geckotribe.com/rss/carp/

    BenPleysier
    Community Expert
    Community Expert
    November 9, 2011

    For a commercial product I think you will be better off with http://www.linecraft.com/dreamweaver-get-external-feed/extension.php

    Gramps

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Participant
    November 9, 2011

    Actually, neither of those 2 products are better than CaRP, especially from an SEO standpoint. Neither displays the feed items in the page source code. Also, CaRP allows control of the look and feed of the feed via an external theme. So for webmasters who have multiple feeds within a site, or across sites, invoking a single theme can effect changes to them all. There is somewhat of a learning curve to using CaRP, since in my opinion, the software maker's website is not very well organized at all, both in terms of product selection and product instructions.

    Known Participant
    November 9, 2011

    Hi all,

    I am wanting to do the same as the original poster.

    Gramps your first link does not work, and I downloaded dreamfeeder for dreamweaver extension and installed but it looks like that thing is designed for creating your own feeds, not displaying existing ones is that right?


    I know of a feed sites that provide a url like.  www.theirdomain.com/rss and what you get is just a page of unformatted text/code.

    This is what I want to show on my html page.

    Never done one before any help would be great

    BenPleysier
    Community Expert
    Community Expert
    November 9, 2011

    Have a look here http://pleysier.com.au/rss/

    Also have a look at http://pleysier.com.au/rss/sushi.php

    Gramps

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Nancy OShea
    Community Expert
    Community Expert
    September 15, 2011

    This tutorial shows how to add a Blogger RSS feed to your HTML pages.

    http://alt-web.blogspot.com/2011/06/adding-blogger-rss-feed-to-html-page.html

    If you know the absolute URL of the RSS feeds, you can parse as many as you wish.

    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

    Nancy O'Shea— Product User & Community Expert
    BenPleysier
    Community Expert
    Community Expert
    September 15, 2011

    This is an example showing Adobe Dreamweaver Cookbook http://pleysier.com.au/rss_example/

    Gramps

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Participant
    September 15, 2011

    Thanks altruistic gramps and Nancy O., but can anyone recommend a Dreamweaver CS4 extension for this?

    BenPleysier
    Community Expert
    Community Expert
    September 16, 2011

    Have a look here http://www.adobe.com/cfusion/exchange/index.cfm?searchfield=rss+feed&search_exchange=3&search_category=-1&search_license=&search_rating=&search_platform=0&search_pubdate=&num=25&startnum=1&event=search&sticky=true&sort=0&rnav_dummy_tmpfield=&Submit=

    Gramps

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!