How to Display Which RSS Feeds You're Subscribed to
1. The code to display which RSS feeds you're subscribed to runs as a Web Service, so you need to be running Radio 8.05 or higher. When I first tried the following instructions, they didn't work for me because I was still on Radio 8.0, so this is first-hand advice to update before you go any further. To do this, check the Radio download page for the most current instructions. Once you've updated, or if you're already current, proceed to the next step.
2. Copy the following text and paste it into a text file. Save it as subs.txt in your Web Services directory in the Radio Userland folder. Make sure you change the URL in the code below to your Web address!
new (tableType, @t);
for adr in (@aggregatorData.services)
local(title = adr^.compilation.channeltitle);
local(channelUrl = adr^.compilation.channellink);
local(rssUrl = nameOf(adr^));
new (listType, @l);
l = channelUrl;
l = rssUrl;
t[title] = l;
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);
local(rssUrl = l);
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://theshiftedlibrarian.com/images/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>";
Make sure you save subs.txt in the "Web Services" directory.
3. Choose one of the following commands to put in your template. Decide where you want it to go, copy it, and paste it into your Home Page Template in the Radio Prefs. They're all roughly equivalent, so you can just close your eyes and point your finger to one to choose.
Here's where I put mine, underneath my categories in the right-hand column.
You can also put this bit of code underneath your calendar in the right-hand column. To do this, look for the calendar macro in your template (<%radio.weblog.drawcalendar ()%>) and paste this code beneath it.
4. If you want to change the headline text to something other than "currently subscribed to", change the following line in the code.
5. By default, the script displays the small coffee cup image next to each feed. Any Radio user can click on that coffee cup to subscribe to that particular feed. In order for the graphic to display on your site though, you need to save the following image into your www/images directory in the Radio Userland folder.
To do this, right-click on the image below and save it to that directory.
Note, though, that characters like apostrophes, ampersands, and semicolons will be interpreted as part of the script and will throw back an error! Again, first-hand advice here.
6. Pat yourself on the back because you've just accomplished your first DIY Web Service. Congratulations!
Blogroll (Sites I Read in My Aggregator)
Mobile Blogroll (Sites I Read on My Treo 600)
Spreading the meme:
Why You Should Fall to Your Knees and Worship a Librarian