Updated: 10/11/2002; 11:26:35 a.m..
Myelin: Radio Dev
A blog for testing stuff: SharpBlog, Comment Monitor, etc
        

Monday, 7 October 2002

Hey, that doesn't sound necessary.  Why don't I:

  • only operate on the cache, and just treat it like a FIFO buffer.
  • Keep the last n comments (where n = 10, 15, or whatever the server operator wants).
  • When a new comment gets posted, drop it on the end of the table, and erase the first post if the new one pushes the number of posts over the limit.
  • After saving a new comment, rebuild the RSS feed.  Save it somewhere near the cached comment counts.

11:01:06 PM    comment [][Macro error: Can't call the script because the name "liveTopicsSuite" hasn't been defined.]

Time for a proof of concept.  I'm working with the part of Radio Community Server that lives inside Manila.

Aha!  Finally found it: the comments are in manilaWebsites.root, in rcsCommentsManilaWebsite.#newsSite.radioHosting.comments.

  1. The comments themselves are stored in a Manila discussion.
  2. Metadata about comments are in comments.users.[usernum].[postid].  This is a table with two items:
    1. link, the URL of the post the comments are about.
    2. msgnum, the thread ID from the discussion system that holds the comments for this post.
  3. comments.counterScriptCache.[usernum] caches the Javascript that generates comment counts when viewing Radio weblogs.

I guess I want to basically take all the functions that generate the Javascript and make versions that do RSS like the comment monitor.


10:12:49 PM    comment [][Macro error: Can't call the script because the name "liveTopicsSuite" hasn't been defined.]

© Copyright 2002 Phillip Pearson.
 
October 2002
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Sep   Nov


Click here to visit the Radio UserLand website.

Subscribe to "Myelin: Radio Dev" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.