Updated the plugin to use the posted_item hook an made it compatable wit...

...h 3.2.x

As the title says these changes make this plugin compatible with 3.2.x