Reworking the Submit plugin
by
on 12-19-2009 at 02:31 PM (585 Views)
In Hotaru 0.8.2, everything revolved around the Submit plugin because it did all the page handling and provided plugin hooks for other plugins to hook into.
In the latest version, I've split Submit into SB_Base for page handling and SB_Submit for the 3-step submission process. Since Submit was the core of the social bookmarking suite, it's taking quite a while to rework it into something a little more logical and less frightening for plugin developers. Today, I managed to complete most of the SB_Submit plugin and I'm much happier with the changes, which include:
- moved generic post functions into the core
- restricted the main plugin file to "hook functions" by putting other submit functions in a separate class.
- clearly distinguished the different submit steps in a logical manner
The next step is to work on the SB_Base plugin to get the submitted posts displaying on the page, then after that, I'll need to do an SB_Edit plugin to piggy-back on SB_Submit so users can edit posts.
Once these Submit plugins are done, it *should* be a fairly straightforward process to update all the other plugins so they fit into the new SB_Base.... though nothing is ever as straightforward as you'd think!![]()













Email Blog Entry