I think once I'm done /w the plugin system, we need to start talking about
refactoring & modularizing scoop to break down comments, stories, story
queues, ratings, etc into discrete, independant modules.
For example, we could refactor the comments into a nice self-contained
system:
comments_all - get all comments.
comments_javascript - get any javascript to add to the top
comments_iframe - returns an IFRAME
comments_single - returns single formatted comment
comments_search - mystery hook into search engine. dont know how to
handle)
comments_?? - other stuff that I forgot.
Some of these, like my flat_comments and dynamic comments would own their
own op. In this case, these would implement other functions that are
non-standard that are only delt with internally.
I'd like to propose a |BOX| like construct into the template system:
|PLUGIN, function, args|.
This would work much like a box, only the function would be an actual
plugin function. This would allow you to embed, say, your comment system
into your |story_summary| block, or imbed your ratings system into your
comments blocks.
Ideas? How should we refactor the rest? A few of these could be
"optional" in that we provide a dummy plugin. I imagine this would be for
ratings & the story queue. These are systems I think we can modularize:
+ comments
+ stories
+ story queue
+ comment ratings
+ polls