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

Glaanieboy

OSNN Veteran Addict
#5
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.
 

Electronic Punk

willalwaysbewithyou
Staff member
Political User
#6
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 :)
 

albybum

Penguin Rancher
#7
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
 

Glaanieboy

OSNN Veteran Addict
#8
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 posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,971
Messages
673,300
Members
89,016
Latest member
Poseeut