Hi Lynne, thanks for your reply.
Unfortunately serialized data is indeed over my head. Is there anyway i could just add a query in do=update at infraction_verify_permissions maybe? Like: UPDATE user SET credits = credits-1 WHERE userid = *the poster* Sorry if this is a stupid question, I can plug my way around VB sometimes but I am def not a programmer.
If not I will prob have to just post in the paid services forum
--------------- Added [DATE]1249744761[/DATE] at [TIME]1249744761[/TIME] ---------------
Ok so I have this kind of working. I added this plugin at infraction_update_complete:
PHP Code:
$db->query_write("UPDATE " . TABLE_PREFIX . "user SET credits = credits-1 WHERE userid = $userinfo[userid]");
And it works like I want it to, it takes away one "credit" from the poster receiving the infraction.
Now to expland on it a bit I wanted to wrap the query in an if condition: if the post is in forumid x, y or z then take away the point, if in any other forum do nothing.
Can someone point me in the right direction to make this happen?