Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Diary Subscriptions Feature Requests
By theantix , Section Wishlist []
Posted on Mon Jan 21, 2002 at 12:00:00 PM PST
Several Kuro5hin users have requested that scoop could have a new box that alerts users to when a diary is posted from a preselected list of users. The box would look very similar to the hotlist box that is currently implemented, but instead would list diaries. This request is not new, but I have come up with some ways to implement it.

Unfortunately I have had trouble implementing this myself, as I have little experience with Perl and MySQL. I am hoping that a more expert programmer in these areas can build on my ideas.

The output of the box would look like this:

theantix's Diary Suscriptions:

  • rusty (0 new)
  • hurstdog (2 new)
  • panner (1 new)

    I have two ideas for the database implementation. The first idea would be adding a CSV list of subscribed users in the userprefs table. The other way would be by adding a simple new table, with a definition of:

    CREATE TABLE dsubscribed_users (
    uid int(11) NOT NULL default '0',
    dsubscribed _uid int(11) NOT NULL default '0'
    )
    Since I know SQL, here is my idea for the SQL query that should return the count of unseen diaries.

    For each subscribed user:

    SELECT COUNT(*) FROM Stories S, HAVING S.section='diary' AND S.aid=$ds_uid AND S.time > (SELECT MAX(S.time) FROM Stories S, Viewed_stories V WHERE S.section='diary' and S.aid=$ds_uid AND V.sid=S.sid AND V.uid=$my_uid)

    (where $ds_uid is the uid of the subscribed user, and $my_uid is the session uid)

    This example assumes that the CSV list is used instead of the table. If the table is used, you could reduce the number of queries performed on the db by using a MySQL join on the dsubscribed_users table.

    Obviously some variation will be necessary for the implemenation, and I apologize again for not coding it myself. But this is a feature that would be greatly appreciated by the regular K5 diary folk. If someone could assist with the coding and get it submitted to kuro5hin, I'll kiss you (not on the lips).

  • < RFE: www.kuro5hin status box on the scoop site | How about a version string? >

    Menu
    · create account
    · faq
    · search
    · report bugs
    · Scoop Administrators Guide
    · Scoop Box Exchange

    Login
    Make a new account
    Username:
    Password:

    Poll
    Would you use this?
    · Yes 40%
    · No 0%
    · Maybe So 60%
    · Please don't kiss me 0%

    Votes: 5
    Results | Other Polls

    Related Links
    · Scoop
    · Kuro5hin
    · not new
    · More on Feature Requests
    · Also by theantix

    Story Views
      42 Scoop users have viewed this story.

    Display: Sort:
    Diary Subscriptions | 4 comments (4 topical, 0 hidden)
    I like it (none / 0) (#1)
    by hurstdog on Mon Jan 21, 2002 at 02:44:50 PM PST

    I've been wanting this for a long time as well. I think that the best way to do this would be through the userprefs table, with a join. Your sub-select won't work in MySQL as it doesn't support them. But it is a good idea, and as soon as I get some more spare time (or someone else implements it first) it will be in scoop.

    If you know a little perl, but aren't sure where to start with scoop, email scoop-dev with your ideas and questions, and we'll give you all the help you need. Or join #scoop, since there is always at least one person who codes scoop in there. Well, almost always :)



    -hurstdog


    Addition (none / 0) (#3)
    by dannygene on Tue Jan 29, 2002 at 07:38:01 AM PST

    I think it would be nice for you to see who is subscribed to >your diary as well. It'd be interesting to see how many people are that interested in your life.



    However.... (none / 0) (#4)
    by zocky on Sat Mar 02, 2002 at 01:57:01 PM PST

    I think that there shouldn't be an extra box for diaries. They should be just added to your hot list.

    Also, the mechanism for adding diaries should be identical to adding stories.

    This currently works, but as far as I see, it adds a diary entry to the hotlist and not a user.

    So I think that the UI is already there, it's just the functionality that needs to be added :)





    Diary Subscriptions | 4 comments (4 topical, 0 hidden)
    Display: Sort:

    Hosted by ScoopHost.com Powered by Scoop
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

    create account | faq | search