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
Announcing the hotlist_flex box Boxes
By hillct , Section Code []
Posted on Sat Jan 05, 2002 at 12:00:00 PM PST
This variant of the hotlist box provides some additional functionality. It allows the user to move between three different views of the box. First, is the default hotlist view. Second, the stories hotlist view, which displays all the stories written by the user in order that they may more easily track comments made. Third, and perhaps most useful is the Replies view, which displays a dynamic list of stories having comments by the logged in user, to which there are unread replies.

The box is available for beta testing here. After I sift through any feedback I get, I'll post it to the Scoop Box Exchange. Update [2002-1-12 7:54:46 by hillct]: Version 0.2.2 has been posted to the FTP site. It incorporates Rusty's CGI parameter fix and a better method for checking logged-in status.

This box was developed in response to a suggestion made by janra and it's been described durring it's evolution but I'm going to try and consolidate things a bit here.

The box was originally intended only to display comment replies, but it seemed to me that this was too similar to a hotlist to warrant use of the additional real estate required for a new box so I combined the comment replies functionality into the hotlist box and added the user stories view as a convenience because a good portion of my hotlist is my own stories so I can track the new comments made once the story scrolls off the front page. Some might think this feature redundant since you can see all your stories using the 'My Stories' link off the user box, but that view doesn't display the number of new comments posted since the story was last viewed.

One side effect of his combination of functionality into one box is that the box doesn't disappear when there is no data to display in the current view because the menu must still be displayed. This is somewhat inconsistent with the behavior of most other boxes but it seemed to be a reasonable trade-off.

The comment replies view displays the subject of the story to which unread replies (to user comments) are attached. It also displays the subject lines of the user comments to shich the replies were made. It's important to note here that the box does not require alterations to the DB. It utilizes data available in the 'viewed_stories' table which means it does not track views of individual comments but only stories. This means if you click n the comment links and read the replies made, they will not be marked read, nor will the story as a whole. In order to get a story marked 'read' you must clock on the story link provided. This is both a blessing and a curse. There are cases where unread replies to multiple comments made by the logged-in user to the same story, where it would be undesirable for viewing of one of the comments to cause the story view timestamp (of sorts) to be updated. In the case of only one unread comment, viewing of that comment should cause the 'viewed_stories' table to be updated which would (in the case of this box) result in the story being removed from the Replies list. Until it got fixed in version 1.96 of Comments.pm, the behavior with regard to marking stories viewed when their comments were viewed based on whether or not the scoop admin had enabled static page caching.

In any case, I'm interested in your feedback as well as end user reaction.
< Computer Professionals Opposing Drug Testing (ip4noman.org) | File uploads thru web interface; file sharing system? >

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

Login
Make a new account
Username:
Password:

Poll
Combination boxes like this are:
· Good 60%
· Bad 0%
· Ugly 20%
· A vary bad precedent that no one should EVER follow 20%

Votes: 5
Results | Other Polls

Related Links
· Scoop
· here
· a suggestion
· janra
· got fixed
· More on Boxes
· Also by hillct

Story Views
  140 Scoop users have viewed this story.

Display: Sort:
Announcing the hotlist_flex box | 10 comments (10 topical, 0 hidden)
Try it here (none / 0) (#1)
by rusty on Sun Jan 06, 2002 at 07:55:35 PM PST

For your beta-testing pleasure, I enabled it here. Look at display prefs, you can pick which one you like better. Or keep both.

I also tweaked it so it handles arguments correctly. I.e. if I'm at a page like /?op=modsub for some reason, and I switch modes, it'll still go back to the page I was on.



Problem, solution (none / 0) (#2)
by rusty on Sun Jan 06, 2002 at 08:52:18 PM PST

Ok, so I wanted to put this box on K5, cause it's neat. But I ran some tests, doing a sample query in the k5 database for the "New Comments" function, and it took insanely long. Like on the order of 5 seconds for a single query. Bad mojo.

I fooled around with the query SQL for a while, but nothing made any difference. Finally, poking around on the web, I found somewhere that mentioned using "OPTIMIZE TABLE tablename" from time to time. Ran this on comments and viewed_stories, and queries are now ~0.5 seconds.

So I guess that's a little word to the wise then. I'm off to optimize the rest of the k5 tables now. :-)



a bug apparent? (none / 0) (#4)
by sleeper22 on Wed Jan 09, 2002 at 11:29:41 AM PST

it seems that in the "replies" mode when i click on the title of a reply (rather than the story title), that reply is not removed from the box as it should be.

in other words, the box is only updated when i click on the story title.
--
babelguides.com <<world literature in translation>>


how does set-view work? (none / 0) (#6)
by sleeper22 on Fri Jan 11, 2002 at 09:13:10 AM PST

where is the current view for each user stored?

i'd also like to make a flex box; is there a generalized mechanism for storing this kind of box variables on a per-user basis?

i'm guessing that the userprefs table is well-suited for this purpose
--
babelguides.com <<world literature in translation>>


bookmarks/links/shared lists (none / 0) (#8)
by infinitera on Thu Mar 07, 2002 at 07:26:27 PM PST

hey all, just had a feature pop into my head today, wasn't sure where to post/send it, so I made a scoop account and chose this story cause it seemed similar;) anyways, here's the idea (inspired because I was reading an awesome comment today, logged in from a computer lab, got home, and couldnt for the life of me find it, because I didn't rate it): Mark comments as interesting, and links. Have a box of them you can see. Have this list shareable with any other user, so that people can have the day's stuff of interest provided by the various people they trust; I for one don't have time to look through every story, but when I do have the time, I find lots of stuff buried deep, stuff that makes me think. So I think distributed and shared processing of this would rock:)



-Dan



Suggestions (none / 0) (#9)
by matthewg on Thu Apr 18, 2002 at 07:04:40 PM PST

I want to always see if I have any replies to my comments, and new comments in my hotlisted stories, etc, so maybe there should be an "All" view for the flex-hotlist. Also, what about the capability to hotlist a thread (by hotlisting its toplevel comment) ? Does the Replies hotlist view show indirect replies (replies to replies) [I asked hillct in IRC and he said he thinks so] - it should, although perhaps distinctly from direct replies (e.g. 4/8 new replies).

The Replies hotlist already does "thread hotlisting" that for your comments, so support for hotlisting threads just means being able to add arbitrary comments to the list of things to watch for that view. Might mean a new DB table (need a way to track a many-many UID-CID relationship), though.



I Like this (none / 0) (#10)
by pusto on Tue Apr 22, 2008 at 03:05:01 PM PST

WebcamSex | Webcam Sex | Sex Cam
WebcamSex | Webcam Sex | Sex Cam
WebcamSex | Webcam Sex | Sex Cam WebcamSex | Webcam Sex | Sex Cam



Announcing the hotlist_flex box | 10 comments (10 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