| |
Enumerating inbound news feeds
on subs() { local (t); new (tableType, @t); for adr in (@aggregatorData.services) { local(title = adr^.compilation.channeltitle); local(channelUrl = adr^.compilation.channellink); local(rssUrl = nameOf(adr^)); local (l); new (listType, @l); l[0] = channelUrl; l[0] = rssUrl; t[title] = l; }; target.set(@t); table.sortBy("Name"); target.clear(); local(s = "<p class='realsmall'>currently subscribed to:</p>"); for adr in (@t) { local(title = string.replace(nameOf(adr^),"'","'")); local(l = adr^); local(channelUrl = l[1]); local(rssUrl = l[2]); s = s + "<p class='realsmall'><a href='http://127.0.0.1:5335/system/pages/subscriptions?url=" + string.urlEncode(rssUrl) + "'><img border='0' src='http://radio.weblogs.com/0100887/images/my/tinyCoffeCup.jpg' alt='Radio UserLand users: click to subscribe. Other folks: use the RSS link to acquire this channel.'></a> <a href='" + channelUrl + "'>" + title + "</a> (<a href='" + rssUrl + "'>rss</a>)</p>"; }; s = s + "<p class='realsmall'>Here's <a href='http://radio.weblogs.com/0100887/2002/02/24.html#a88'>how this works</a>.</p>"; return (s); }
© Copyright 2002 Jon Udell.
Last update: 8/6/2002; 12:46:19 AM.
|
|