1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Updating a datafield in db when a user creates a post

Discussion in 'XenForo Development Discussions' started by xpl0iter, Feb 1, 2013.

  1. xpl0iter

    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?
     
  2. digitalpoint

    digitalpoint Well-Known Member

    Wouldn't that ultimately just be the same as the user post count (which increments when they make a post)?
     
  3. xpl0iter

    xpl0iter Active Member

    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!
     
  4. MOZ

    MOZ Well-Known Member

Share This Page