Updating a datafield in db when a user creates a post

xpl0iter

Active member
I am adding a field to user table in db. So everytime when the user makes a post, I would like to increment the number in that field. So how do I increment it when that person is making a post?
Is there some kind of hook or something like that so that I can execute this query?
 
Wouldn't that ultimately just be the same as the user post count (which increments when they make a post)?
Actually I would like to reset this every hour or so.
In that case having another field will be handy and would not cause any issues, to the original system!
 
Back
Top Bottom