[PHP] Does anyone have the Active Desktop script by madmatt?

Discussion in 'Web Design & Coding' started by Glaanieboy, Aug 13, 2004.

  1. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    I am currently trying to write my own RSS reader script in PHP, but I am having troubles with it. Now I wanted to download the ntfs.desktop madmatt created some time ago for reference and help, but the links to it (on the frontpage Guides -> Other Guides -> Active Desktop Tutorial) are dead. Can anyone send me or tell me were I can find a copy?
     
  2. Grandmaster

    Grandmaster Electronica Addict Political User Folding Team

    Messages:
    10,574
    Location:
    Santa Clara, CA
    You'll have to email madmatt.
     
  3. NetRyder

    NetRyder Tech Junkie Folding Team

    Messages:
    13,256
    Location:
    New York City
    Active Desktop [​IMG]
    Still have an old screenshot of my desktop from back in Feb 2003!
     

    Attached Files:

  4. dreamliner77

    dreamliner77 The Analog Kid

    Messages:
    4,702
    Location:
    Red Sox Nation
    Yeah, where has matt been these days? I even have a cookie waiting here for him...
     
  5. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    I am afraid that if I mail him he doesn't respond, since he's gone for quite a while. Also his site is down (maintenance). I was just wondering if someone downloaded the ntfs.desktop and still has it on his/her harddrive, so he/she could upload it here. I don't mind if it's an old version (maybe the xp-erience.org version?), I only need to know how he has done some coding I am having problems with.
     
  6. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,590
    Location:
    Copenhagen, Denmark
    I will ask him next time I see him online?
    Just starting to fiddle with active desktop here at work, so would be very useful if it could get a nice overhaul :)
     
  7. albybum

    albybum Penguin Rancher

    Messages:
    280
    Location:
    Elizabethton, TN
    If you are going to write your own rss feed parser, you might be in for a load of work.

    I suggest getting this RSS parser and using it.

    http://magpierss.sourceforge.net/

    You pretty much copy the include files and the directories to your webserver, make a cache directory for the feeds you want and insert code similar to this.

    PHP:

    <?

    // location of your Magpie Rss files 
    require_once './templates/rss/rss_fetch.inc';

    // location of the RSS file you are trying to parse
    $url 'http://www.osnn.net/modules.php?modname=backend&action=rdf&id=1';
    $rss fetch_rss($url);


    echo 
    "Site: "$rss->channel['title'], "<br>\n";
    foreach (
    $rss->items as $item ) {
        
    $title $item[klipfood_title];
        
    $url   $item[klipfood_link];
        echo 
    "<li><a href=$url>$title</a></li>\n";

    }

    ?>

    That is setup to just pull off the Main feed from OSNN.


    The end result looks like:

    http://www.albybum.net/rss_test.php


    Of course you can format it the way madmatt had and add a dropdown menu for each feed you want to link to. Magpie has pretty good documentation on the rss xml parser. It should be able to handle what you want to do.

    [Edit]
    The compatibility is awesome since it isn't using regular expressions to parse the feeds.

    Same script as above, just linked to yahoo's main news feed and took out the klipfolio-specific object for the link and the title.

    http://www.albybum.net/rss_yahoo.php

    PHP:
    <?

    // location of your Magpie Rss files 
    require_once './templates/rss/rss_fetch.inc';

    // location of the RSS file you are trying to parse
    $url 'http://rss.news.yahoo.com/rss/topstories';
    $rss fetch_rss($url);


    echo 
    "Site: "$rss->channel['title'], "<br>\n";
    foreach (
    $rss->items as $item ) {
        
    $title $item[title];
        
    $url   $item[link];
        echo 
    "<li><a href=$url>$title</a></li>\n";

    }

    ?>



    http://news.yahoo.com/rss
     
  8. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    thanks :D
    I thought it was easy to make a RSS reader, and I still think it is, I just need to know a few basics. Looks like this will help me :)