View RSS Feed

Nick's Hotaru CMS Blog

Reworking the Submit plugin

Rate this Entry
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!

Submit "Reworking the Submit plugin" to Digg Submit "Reworking the Submit plugin" to del.icio.us Submit "Reworking the Submit plugin" to StumbleUpon Submit "Reworking the Submit plugin" to Google

Categories
Plugins

Comments

  1. Nick -
    Nick's Avatar
    I've finished SB_Submit and included the post editing stuff in it. I'll probably start on the Users plugin next.

Trackbacks

Total Trackbacks 0
Trackback URL: