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

Glaanieboy

OSNN Veteran Addict
Joined
6 Mar 2002
Messages
2,628
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?
 
Active Desktop
ohmy.gif

Still have an old screenshot of my desktop from back in Feb 2003!
 

Attachments

  • get_the_code.jpg
    get_the_code.jpg
    581.8 KB · Views: 1,379
Yeah, where has matt been these days? I even have a cookie waiting here for him...
 
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.
 
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 :)
 
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
 
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 :)
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back