RSS Feeds on a webpage

Hi DW people am trana have feeds from many different sources included on pages in the website that I am working on.
What I want to achieve: I am looking to have one row with three columns that display the feed headlines in a 220px by 220px div container (you know all those headlines with pics). So am also trana make each container display like 5 headlines each from one source(usually feeds providers have more than one headline sometimes up to 20)
So far I have created an XSLT Fragment and I have an XML data source binded to it. The thing is when it is displayed in the browser I have no control over it ie it just lists out all the feeds in several rows from the top of the page to the bottom. Then when I tried giving it some style to make it align in a row they just overlap one on top of the other.
When I tried including the Fragment on my dynamic page DW automatically created MM_XSLTransform.class.php file and attached it to my page. I dont want to bore anyone but I have issues with this particular MM_XSLTransform.class.php file. I have tried including some functions of my own in it so as to give it more capabilty but really its a very long story...
I have also experimented with Spry but then without the XSL style it just gives the raw data as output in the browser. When I tried having the XSL style along with the Spry it gives several errors at the start of the page like so:
( ! ) Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\wamp\www\parseXMLs\includes\MM_XSLTransform\MM_XSLTransform.class.php on line 208
( ! ) Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\wamp\www\parseXMLs\includes\MM_XSLTransform\MM_XSLTransform.class.php on line 215
at the bottom list out the feeds!!!!
The error appears on several lines (listing them all out here wont make sense).
Am using DW CS4 on a windows 7 OS..
Pls DW people I need some help with this one.. Speedy and valid response appreciated

Oh my ...
U really did this for me ?... I appreciate it SIR ... U even put my screen name up on the site.. Wow now I feel popular.. Thank u for all the hard work that u put into this. I really appreciate it..
Where did the images go? And they do not link to the full story...
U know wat this is my code.. I hope it gives a clear picture of wat I have been battling wt. See Below
On page where feeds are to appear:
<?php
//XMLXSL Transformation class
require_once('MM_XSLTransform.class.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
a:link{
    font-weight:100;
    color: #009;
    font-size:16px;
a:link img{
    border:none;
a:hover{
    font-size:17px;
    text-decoration:none;
    color: #966;
a:visited{
    text-decoration: none;
    font-size:15px;
a:visited:hover{
    font-size:17px;
    text-decoration:none;
    color: #963;
#footer {
    padding: 0 10px;
    background:#DDDDDD;
#footer #contentTickerarea1{
    overflow:hidden;
    margin: 10px auto;
#contentTickerarea1 #headline1{
    margin-left:10px;
    float:left;
    width:200px;
    height:150px;
#contentTickerarea1 #headline2{
    margin-left:10px;
    float:left;
    width:200px;
    height:150px;
#contentTickerarea1 #headline3{
    margin-left:10px;
    float:left;
    width:200px;
    height:150px;
#contentTickerarea1 #headline4{
    margin-left:10px;
    float:left;
    width:200px;
    height:150px;
#footer #contentTickerarea2{
    overflow:hidden;
    margin: 10px auto;
#contentTickerarea2 #headline5{
    margin-left:10px;
    float:left;
    width:200px;
    height:150px;
#contentTickerarea2 #headline6{
    margin-left:10px;
    float:left;
    width:200px;
    height:150px;
#contentTickerarea2 #headline7{
    margin-left:10px;
    float:left;
    width:200px;
    height:150px;
#contentTickerarea2 #headline8{
    margin-left:10px;
    float:left;
    width:200px;
    height:150px;
#footer #related{
    margin:15px auto;
#footer #Botads{
    margin: 10px auto;
#Botads #boxAds{
    overflow:hidden;
    margin: 5px auto;
#boxAds #botAd1{
    margin-left:10px;
    float:left;
    width:200px;
    height:150px;
#boxAds #botAd2{
    margin-left:10px;
    float:left;
    width:200px;
    height:150px;
#boxAds #botAd3{
    margin-left:10px;
    float:left;
    width:200px;
    height:150px;
#boxAds #botAd4{
    margin-left:10px;
    float:left;
    width:200px;
    height:150px;
#botbannerSpace{
    margin: 5px auto;
    width:600px;
    height:100px;
#footer #siteStats{
    margin: 10px auto;
    height: 60px;
#footer #Botlinks{
    text-align:center;
    margin: 10px auto;
    height: 60px;
#footer #Botlogo{
    margin: 0 2px;
#Botlogo img{
    width:100%;
#footer #BotsocialMedialinks{
    margin:0;
    padding: 1px;
    height:25px;
#footer #copyInfo{
    overflow:hidden;
#copyInfo .copy{
    float:left;
#copyInfo .poweredBy{
    float:right;
</style>
</head>
<body>
<div id="footer">
motorsports Headlines
  <?php
$mm_xsl = new MM_XSLTransform();
$mm_xsl->setXML("../XML Files/RSS Feeds/XSLT/newsdocinfo treeGoogle.xml");
$mm_xsl->setXSL("../XML Files/RSS Feeds/XSLT/headlines.xsl");
echo $mm_xsl->Transform();
?>
<div id="contentTickerarea2">
<div id="headline5">
<!--End of #headline5--></div>
<div id="headline6">
<!--End of #headline6--></div>
<div id="headline7">
<!--End of #headline7--></div>
<div id="headline8">
<!--End of #headline8--></div>
<!--End of #contentTickerarea2--></div>
<div id="related">
related
<!--End of #related--></div>
<div id="Botads">
<div id="boxAds">
<div id="botAd1">
<!--End of #botAd1--></div>
<div id="botAd2">
<!--End of #botAd2--></div>
<div id="botAd3">
<!--End of #botAd3--></div>
<div id="botAd4">
<!--End of #botAd4--></div>
<!--End of #boxAds--></div>
<div id="botbannerSpace">
<!--End of #botbannerSpace--></div>
<!--End of #Botads--></div>
<div id="siteStats">
<!--End of #siteStats--></div>
<div id="Botlinks">
<!--End of #Botlinks--></div>
<div id="Botlogo">
<!--End of #Botlogo--></div>
<div id="BotsocialMedialinks">
<!--End of #BotsocialMedialinks--></div>
<div id="copyInfo">
<div class="copy">
<!--End of copy--></div>
<div class="poweredBy">
Powered by
<!--End of poweredBy--></div>
<!--End of #copyInfo--></div>
<!-- end #footer --></div>
</body>
</html>
the XSLT Fragment(created with help from DW), here I use an XML Source from google I saved it to my PC so I dont always have to be on the internet to work wt it :
<?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="newsdocinfo treeGoogle.xml" -->
<!DOCTYPE xsl:stylesheet  [
    <!ENTITY nbsp   "&#160;">
    <!ENTITY copy   "&#169;">
    <!ENTITY reg    "&#174;">
    <!ENTITY trade  "&#8482;">
    <!ENTITY mdash  "&#8212;">
    <!ENTITY ldquo  "&#8220;">
    <!ENTITY rdquo  "&#8221;">
    <!ENTITY pound  "&#163;">
    <!ENTITY yen    "&#165;">
    <!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/">
<div id="contentTickerarea1">
<xsl:for-each select="rss/channel/item">
<div id="headline1">
<xsl:value-of select="description" disable-output-escaping="yes"/>
<!--End of #headline1--></div>
</xsl:for-each>
<!--End of #contentTickerarea1--></div>
</xsl:template>
</xsl:stylesheet>
According to the help docs of DW .. It is always good to put the style of the fragment on the dynamic page itself to avoiding giving the servers a hard time.. Incase you asking just how I created the fragment: New->XSLT Fragment-> DW then presents you wt d option of using a local source file or using one from the net.. whichever u choose the schema of the source appears in the Bindings panel...
Then to add this Fragment on the dynamic page.. U open the page in DW.. click Server Behaviors->click the + then click XSL Transformation...
Phew.... Thats a lot of info aint it?
Run my code as it is and see wat happens ... u might have to get ur own source to work wt..
On the dynamic page when u do as I have explained above DW creates a link to the MM_XSLTransform.class.php file ...
I hope all of this helps SIR
Message was edited by: HJWJ

Similar Messages

  • Can RSS feeds show whole webpage instead of summaries?

    I have a feed on craigslist.com, but Mail is only showing summaries of newly posted items in my feed. To be able to see photos, I need Mail to show me the full webpage. I know some other feed readers like Mozilla Thunderbird have this option. Can this be changed in Mail?

    Hey thanks for your answer, but thats not what i meant.
    The feeds i use are not full text feeds. There are only short summarys of the whole articles. If you want to read the whole article, you have to click on a link, your webbrowser opens an you can read the rest on the website itself. In thunderbird there is an options that shows the website in the program, so you dont have to click and open the webbrowser to read the full article.
    Thats what i want with mail if possible.

  • Using xml rss feeds in dreamweaver

    I used dreamweaver to configure a rss feed in my webpage.
    One thing led to another and I was forced to reinstall my php
    server via
    xampp
    Now when I load the page on my computer I have this error:
    Fatal error: Call to undefined method domdocument::loadXML()
    in
    N:\INETPUB\xampp\htdocs\1purpose_bethel\includes\MM_XSLTransform\MM_XSLTransform.class.ph p
    on line 303
    I checked the includes folder and I do have the class file
    MM_XSLTransform.class.php
    but what I am wondering is if there is a place in my php.ini
    file that needs
    to modified to allow for the RSS feed? Or is there something
    else that I am
    over looking?
    any insight would be greatly appreciated
    thank you
    Kevin

    Hi, I'm also having the same error. I found in some other
    forums that I should do the following (I think its you David who
    suggested it):
    comment the line --> $xml =
    DOMDocument::loadXML($content);
    then add these two lines
    $doc = new DOMDocument();
    $err = $doc->loadXML($content);
    Well, actually when MM_XSLTransform.class.php was created it
    was already updated. But I'm still getting the error.
    I'm still a baby in PHP and I've been trying to figure it out
    for 2 days and nothing is happening.
    Please, please...your response will be highly appreciated.
    Kind regards,
    Jeng

  • RSS feeds open multiple tabs, doesnt go to feed

    when i want to choose and subscribe to an RSS feed on a webpage, the browser opens several EMPTY tabs and I cant stop it. I am not able to select a RSS feed through a website. i was able to do this before. Not sure if it is an upgrade issue or hardware or?
    Please helP!

    Did you delete the mimeTypes.rdf file in the Firefox profile folder?
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder
    You can check the network.protocol-handler.external.mailto prefs on the about:config page.
    *http://kb.mozillazine.org/about:config
    If network.protocol-handler.external.mailto prefs are user set (bold) then right-click and Reset them to the default value.

  • I figured out the XML RSS feed to webpage but..

    Hello All
    I finally figured out how to get and rss feed xml to my
    webpage(s) via the Spry xml data set etc.. when I previewed in IE
    it was fine but I uploaded it and I get an error
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct
    the error and then click the Refresh button, or try again later.
    Only one top level element is allowed in an XML document.
    Error processing resource '
    http://www.michaelsondesign.com/Spry/r...
    I just want to show my boss that I have been working on this
    and would love to show him an example of this awesome technology is
    there something Im not uploading? What does this error mean?
    Thank you
    Rob

    Hi,
    I am trying to display an RSS feed on my website as well. I
    haven't figured it out.
    Can you help?
    Thanks,
    H.J.D.
    [email protected]

  • Script to open RSS feed url's and post those in the background to a webpage

    Dear everyone,
    Im trying to work on a script that should do:
    - Read My Apple mail RSS feeds every 120 seconds
    - extract a NUMBER from the links from those RSS feeds
    - then post them to a website url site.com/rss.php?id=<extracted id>
    - It should run totally in the background of my apple
    - The links should be posted in the background also without opening any browser or safari
    Is this possible?
    I have my apple now 4 months and this is my first applescript project, so its a bit too much for me, ive spend several hours investigating on how to do this can someone help me out a bit please?
    on idle
    if application "Mail" is running then
    -- read RSS feeds from apple mail
    -- Extract link ID www.site.com/?id=12345
    -- Post Id 12345 to http://site.com/rss.php?id=<the id>
    end if
    return 120
    end idle

    Read My Apple mail RSS feeds every 120 seconds
    Start by using a different RSS application.
    Mail.app doesn't provide any access to RSS feeds via AppleScript, so there is no chance of doing this with Mail.app (or, at least, no easy way to do so).
    Try something like NetNewsWire instead.
    Once you have a viable app, the first part is pretty straightfoward:
    on idle
     if application "NetNewsWire" is running then
      --extract a NUMBER from the links from those RSS feeds
      tell application "NetNewsWire" to set numLinks to total unread count
     end if
     return 120
    end if=idle
    From here, though, I don't know what you're trying to do. You say:
    then post them to a website url site.com/rss.php?id=<extracted id>
    Do you mean you want to post the number of RSS messages (since that's what you asked for earlier), or do you mean you want to re-post the RSS articles? Or do you mean you want to download the links and re-post the entire linked article?
    That's three options (and there are probably more), each of which require a different approach.

  • How to use iweb rss feed in an iphone web app?

    So this is my dilemma.  I wanted my iweb turned into a web app using the rss feed.
    This is simply done cause of the "Add To Homescreen" feature. 
    While the RSS feed works beautifully on safari... it does not read as a webapp.
    This surprised me cause I thought it would still be safari that would be loading my web app.
    I tried everything to get my RSS feed to work in a web app but i failed miserably.
    Is there a fix for this?

    Adding to the homescreen doesn't make it a webapp.
    It creates a shortcut to the webpage, just as dragging a url to the desktop creates a .webloc file.
    You want an iWeb "webapp"?
    Add this page to the homescreen and then click that icon :
    http://www.wyodor.net/_Demo/Fancy/Dynamic_Text.html
    Then click the links in the dynamic textboxes.
    I leave it to you to figure out how it's done. Hint : read the documentation.
    To summarize : you want a fix for a problem that does not exist.

  • IWeb09 RSS Feed Button not providing the correct URL

    I use iWeb 3.0.1 and MobileMe to host my own domain. However, I want to add a Blog with RSS feed. When I insert the RSS Feed button it creates a link to http://www.<domain>/username>/Blog/rss.xml. This doesn't work in RSS readers since the path is not valid.
    However, if I manually edit my RSS reader to point to http://web.me.com/<domain>/<username>/Blog/rss.xml it correctly finds the RSS XML file indicating that the Blog pages are being published correctly.
    Is there a bug in iWeb or have I not configured something properly? I can't find a way to manually edit the RSS feed button.

    Your domain uses URL forwarding with masking. It has no meaning for links. It's just cosmetics.
    This is the webpage that counts :
    http://web.me.com/philipksmith/philipksmith/Blog/Blog.html
    The blue RSS button is the wrong one.
    !http://www.wyodor.net/_Discussions/WrongRSSButton.png!
    Why not enable personal domain and use your domainname properly.
    To use your domainname, follow the instructions in your MobileMe account where you setup Personal Domain:
    https://secure.me.com/account/
    Where you'll find a link to [iWeb: Using your own domain name|http://support.apple.com/kb/HT1107]
    Or read it in the [MobileMe help|http://help.apple.com/mac/1/help> : Account > Setting up a Personal Domain
    You can have only one domainame with Personal Domain at MobileMe. To use the other one you have to enable URL forwarding where you host your domainname.

  • RSS Feeds display in Flash but not browser

    I have a Flash application that pulls an RSS feed and
    displays the top 5 titles and descriptions. Everything works fine
    when I test the application in Flash but when I try to publish the
    file I get the security msg in IE (To help protect your security,
    Internet Explorer has restricted this webpage from running scripts
    or ActiveX controls that could access your computer...blah blah).
    When I test in Firefox the movie clips containing the feeds
    simply don't appear (everything else does though). I'm using an
    external class file to parse the xml from the feeds and populate
    the movie clips with the content. Is there another way I should be
    doing it, or is there a publish setting I'm unaware of that will
    block external content from being displayed in the player?
    Any advice would be appreciated - thanks!

    sorry :(
    just figured some people would only check certain favorite parts of the forums
    public class MyApplet extends JApplet{
    JPanel myPanel = null;
    Graphics2D _gfx = null;
    init(){
    _gfx = (Graphics2D)myPanel.getGraphics();
    // The usual constructor, initializes / adds components
    private void restart(){
    drawThread = new DrawThread( gfx );
    _drawThread.start();
    private class ButtonListener implements ActionListener {
    public void actionPerformed(ActionEvent e)
    if( e.getActionCommand() == "Restart" ){
                        restart();
    public class DrawThread extends Thread{
    Graphics2D _gfx = null;
    public DrawThread( Graphics2D gfx ){
    _gfx = gfx;
    run(){
    // setColor()
    // drawString()
    // drawRect()
    // etc.
    // pretty straight forward. not sure what could be wrong...

  • What program to use to create an RSS feed for iTues.  PC-user.

    Hi! I'm a PC-user. I need to create an RSS feed for iTunes. What program do I need to use?
    Thanks,
    Charley

    Today, Sep. 24, 2006, there is on the Webpage a link
    (http://www.feedforall.com/download.htm) (Shareware)
    to the FeedForAll v2.0 BETA2 with iTunes Support.
    Read on the website:
    "FeedForAll BETA- robust RSS feed creation software with namespace support includind support for iTunes and other namespaces."

  • IWeb RSS feed will not load with any site.

    I am trying to display an simple RSS feed on my website and what ever site l use, BBC, France24, ABC, FOX News etc... whenever l copy and paste the RSS link in the widget and click apply. I am shown the message "The RSS feed source can't be reached. Try again."
    Here is an example of how i'm inputing the RSS link:
    feed://feeds.bbci.co.uk/news/uk/rss.xml
    feed://www.france24.com/en/france/rss/
    Your help is much appreciated. Thanks

    If the widget does not work, search for alternatives.
    http://www.google.com/search?q=embed+rss+feed+in+webpage
    Found this one : http://feed.mikle.com/
    Paste the RSS link without feed:// and configure the result.
    Copy/paste the code in a HTML Snippet.

  • Blog rss feed is buggy?

    Has anyone had luck creating a blog rss feed? When I look at my rss feed in Safari it shows an small image and text for each entry. When I click on the image, instead of linking to the entry page, Safari opens a full sized image.
    You can see this at: feed://rss.mac.com/kevinpackard/iWeb/The%20Packards/690A4A1C-A190-4DF0-B0B2-635 DD508F304/rss.xml
    I think it's a bug, but thought I'd run it by the forum here before I file it as a bug with Apple.
    Thanks,
    Kevin Packard

    I had set the webpage URL to www.server.edu/~login/ when I was asked after choosing to publish the site, and when I clicked on the RSS button all I saw was a white screen with some broken images and a few bits of text. When I changed the URL to www.server.edu/~login/blog/rss.xml, it now works correctly.

  • N97 Browsing from Rss feed

    Hi all, first post on here. I decided (for some mad reason) last month to get a N97 rather than a iphone...I think I was going to miss a good camera, and I thought it was too much. Anyway I have a good few issues with the thing, one being If I click on a link from a RSS feed that opens the (slow) browser, If I then want to contining browsing...a: The bookmarks are disable in Options and b: links don't work within webpages. If I close the browser and close the RSS then open the browser seperatly all is fine.
    Has anyone else got he same problem? 
    Thanks Darren
    woooops Firmware v 11.0.021
    Message Edited by Mekon101 on 16-Oct-2009 10:06 AM

    Danish,
    I was wondering if you could share your solution? I am trying to do something similar and haven't been able to successfully get the data imported the way I want.
    I've created a standard RSS feed, but that format really doesn't seem to be conducive to communicating data rows.
    Thanks,
    Nate

  • Add Someone Elses RSS feed to my iWeb Page

    I would like to add a quote of someone else's RSS Feed onto my page. For example, I think it would be nice to be able to show a summary of the current weather in my town from weather.com in a text box on my page. Can this be easily done within a page created by iWeb? I know that I can add a static link to the weather.com page, but an auto updated box would be cool.
    Apologies if some of my terminology is not correct, and thanks for any helpful hints!
    MacBook 13 inch 1 GB RAM 60 GB HD   Mac OS X (10.4.7)  

    Check this page out for a cool online HTML code generator to do just what you want...
    http://p3k.org/rss/
    Once you get the HTML code, you will have to edit it into your published page.html file, using the now standard method of adding external HTML...
    Two things to keep in mind...1. No way to do this via iWeb directly, so it involves editing the published html files, and 2. Because iWeb republishes the html files whenever you update the your webpage, you will lose your changes and have to redo them to add your banners back.
    The general directions are as follows...
    1. Decide where you want your feed box and know exactly what dimensions you need.
    2. Insert a text box onto your page and adjust its size to exactly your dimensions.
    3. Type in some uniquely identifiable text like, "RSSFEEDHERE" without changing the font or anything else...just type it in.
    4. Publish your page with iWeb.
    5. Find the html file associated with your published page (either on your iDisk or in a folder depending on how you published) and open it in any text editor (like Microsoft Word, or Textedit, or anything).
    6. Scroll through the html file and locate your placeholder text, e.g. "RSSFEEDHERE".
    7. Replace the placeholder text with your html code and save your page. (not save as, just save)
    That's it. You should see your rss feed box show up where you placed the text box.

  • Podcast RSS Feed - iWeb to Rapidweaver?

    I currently have a podcast on a website that was created in iWeb and is hosted on MacHighway. The podcast is listed on iTunes. I'm transitioning my site from iWeb to Rapidweaver and need to update my RSS feed so that I don't loose any of my subscribers.
    Would anyone know the steps to take for this process?

    I am aware of the need to rebuild the podcasting webpages from scratch in RW--I actually look forward to it as RW offers much more flexibility and creativity in page layout than iWeb does.
    Could you elaborate on the steps to do this?: "When you create the podcast in it just specify the URL and name for the rss file to be the same as before: then it will simply replace the previous file and iTunes will see it as before."
    Do I need to somehow name the RW pages with the same naming scheme as the old iWeb pages? I hope not as the iWeb url was so convoluted and I want to streamline it.
    Judging by what I'm reading on the forums, i'm afraid I'll just need to rebuild and resubmit a new url. This is by far the easiest. It just pains me to start my subscriptions from scratch -- I have two years of subscribers built up, and no way to communicate with them a new url for the podcast!
    Thanks for your time and insights!

Maybe you are looking for

  • New project new scanrios

    Hi V r in BBP. SAP recommend Semi Finish & Finish goods stocks on Standard Price, my client need to  following; 1. Produt wise profitability (note COPA is not in the scope) 2. Outlet wise profitability 3. Customer wise profitability 2. Inventory valu

  • Is it possible to load classes from a jar file

    Using ClassLoader is it possible to load the classes from a jar file?

  • Web Service error in NWDS.

    While creating a web service in NWDS, when I select the method to be contained in the virtual interface (web service) , I get an error in the next step Extending Type Specification of an extending type for abstract type com.sap.security.api.IPrincipa

  • Export Settings to Reduce Titles Fading

    Quite new to Premiere Pro.  Did a few searches with no hits.  I created some titles and then exported the video varying the settings.  The "match sequence settings" version looks fine but as soon as I use H.264 compression, the title track fades sign

  • When new update for 17.1.A.1.2?

    I was reading that there are many issues with the touchscreen. Sony won't tell us whether this is a hardware issue or not, but as I heard they are trying to fix this with some updates. When do we get some new updates? On the Z2 Tablet page I still on