JTC

Home
Categories
DIY
Lyrics
Big Blue Marble
Jeff's Favorite Weblogs

 
Sample Output:
 
Hack the Planet Prime
John Robb's Radio Weblog
Scripting News
Doug Baron's Radio We...
The Doc Searls Weblog
Flutterby!
SlashDot.Org
MacInTouch
2020 Hindsight
Powazek Productions: ...
Archipelago
traumwind
   
Jeff's Favorite Weblogs is a modified version of the myFavoriteWeblogs example from Dave Winer's most excellent DIY Web Services with Radio 8 tutorial.

Instead of returning n random favorites, my version returns n favorites in order from the most recently updated to the least recently updated.

My version adds an optional parameter which limits the length of the favorite's name as it appears in the returned text. I've found that some of the names are ridiculously long and cause design problems. the default max length is 24 characters. If a favorite's name is longer than 24 characters, then it will be truncated by taking the first 21 characters and adding 3 periods (points of Ellipsis).

My version also adds a "title" attribute to the anchor tag (a.k.a. link) which shows the time that the favorite was updated.

To set up your own Favorites Web Service:

  1. First make sure that you're running Radio UserLand 8.0.3 or later.

  2. Copy the following code:


  3. Paste the code into a new document in your favorite text editor.

  4. Save this document in your Radio UserLand/Web Services folder, as "jtcFavoriteWeblogs.txt".

Now to use this Favorites Web Service:
  1. Copy the following code:


  2. Paste the code where ever you want (in your posts and/or templates).

This web service can also be implemented as a Macro.

Special Thanks to Dictionary.com for showing me how to distribute code snippets without the recipient unintentionally picking up invisible characters which render the code inoperable.