Spotted you’re using poststatus in post_new and post_status in post_remove
Support Forum
The objects returned by the post_create and post_delete hooks are using different object naming conventions. create uses poststatus, userid etc. and delete uses post_status, user_id etc.
oh, the creation is just a variable name… the deletion is the actual column in the db table…
Updated plugin:
http://cubehouse.org/blog/wp-content/uploads/2011/07/cubePoints.zip
Features:
- Configurable points awarded for new posts and topics
- Configurable choice to log details to the CubePoints log file
- Choose if you want to remove points when deleting posts and topics
- Fail-safe detection of CubePoints plugin, will give warning if required plugin not found
cool!
Now you just need to integrate it with the post rating plugin… so if someone rates a post positive, up goes the points.. and conversely… 
I can come up with lots of ideas 
So have you found the pluging api fairly easy to use? not withstanding the lack of api documentation currently…
Plugin API has worked a treat! Is very simple to use and follows nicely along the standard WordPress-style of doing things, which is nice.
Obviously with a beautiful fleshed out API documentation explaining all the bits and bobs it will be much better 😉
Will have a peak at the post rating plugin, haven’t enabled that one yet. See what I can do at some point in the next few days. Thought this was a relatively simple plugin that would make a good start.
Ok, I’m looking at the plugin for post-ratings and spotted something I’m not 100% sure about.
There’s a lovely hook being called by the rating plugin (conveniently) “sph_post_rating_add”
But, it appears to be called by sp_add_postratings and sp_update_postratings, so if I were to hook into this, I’m guessing it will add points if the user updates their rating too, which could allow for some easy point building!
If there a way of perhaps passing the “post rating type” (i.e, new/update) to the action or something? Or perhaps I’m missing a more sensible approach to this.
Cheers!
first, any user can only vote once, but yes they can vote on their own posts… and you have the post id and the user id, so could easily check if the vote is for their own post and disregard…
guess I could look into how hard it would be to not let users vote on their own… makes sense…
ok, was just curious what this update_vote hook was, wrote the code assuming it might never trigger in the way I was thinking. So will have a little play with it later and update 🙂
Its any posibility that integration showing posts with cube points?
Like : To se some topics you should have 50points.
early in 5.0 someone was working a cubepoints integration… think they had it working, but not sure of status currently…
with the 5.0 plugin api, an sp plugin to integrate the two would not be that difficult… its on our list, but our list is long… hoping that the original person who started will finish…