Support Forum
whoops. have that backwards..... posts needing moderation have post_status == 1
and only posts required by your permissions to be moderated will go through moderation...
Visit Cruise Talk Central and Mr Papa's World
Ok, I'm trying to use the "sph_post_delete" hook. It returns a single integer which is the post_id that just got deleted.
Any thoughts on the best way of pulling the user_id from that? Or is there a more sensible hook?
Edit: Also, I think "sph_topic_delete" doesn't call the "sph_post_delete" hook for each post? Should this be a separate case?
try an svn up...
have updated both hooks...
the post delete hook will now pass an object of the post row that was deleted...
the topic delete hook will now pass an object with all the post rows that were deleted...
you can get what you need from them...
but yes, delete topic and delete posts are two different things... easier/quicker/more efficient to delete a topic then delete each post individually...
for some points implementations, you get more points for starting at topic than replying...
one word of caution - not sure you care... but, if you delete a post, and its the only post in that topic, you will instead get a topic deletion hook fired and not the post deletion hook...
Visit Cruise Talk Central and Mr Papa's World
oh, the creation is just a variable name... the deletion is the actual column in the db table...
Visit Cruise Talk Central and Mr Papa's World
Updated plugin:
http://cubehouse.org/blog/wp-c.....Points.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