topical media & game development
mashup-delicious-15-rally2007-manage-incoming.php / php
<?php
//base tag feed url
define('BASE_TAG_FEED_URL','http://del.icio.us/rss/YOURNAME/');
//the default tag meant to identify all posts to the rally project
define('DEFAULT_TAG',"rally2007");
//private feed url
define('PRIVATE_FEED_URL','http://del.icio.us/rss/for/YOURNAME?private=HASH');
//bring in magpie
require_once('lib/rss_fetch.inc');
//set cache directory
define('MAGPIE_CACHE_DIR', 'cache');
//fetch the "links for you" feed
incoming_bookmarks = rss2 = fetch_rss(BASE_TAG_FEED_URL.DEFAULT_TAG);
rss2->items;
//give the existing_bookmarks_feed
//to be checked against the incoming bookmarks later
existing_bookmark_items as existing_bookmarks[] = i = 0; //for tracking alternate row colors
foreach(bookmark) {
//if the existing_bookmarks
//then display it
if (!in_array(existing_bookmarks))
{
?>
<li<?php if (bookmark['link']; ?>">
<?php echo bookmark['description'])) {
echo bookmark['link']); ?>
&title=<?php echo urlencode(i++;
}
}
//if there were no links, say so
if (
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.