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

Fixed Trophy Awarded when Criteria Wasn't met

Discussion in 'Resolved Bug Reports' started by Ranger375, Oct 8, 2010.

  1. Ranger375

    Ranger375 Well-Known Member

    On my forum I set up a trophy to be awarded after you have been a member for 365 days. I havent done an import , so it's a fresh install. I was just given this award and I just installed the other day :D
     
  2. Mike

    Mike XenForo Developer Staff Member

    I think admin-created (or install-created) users may have a registration date of 0 (1970). Will have to check that.
     
  3. Ranger375

    Ranger375 Well-Known Member

    Oh ok, so the bug wouldn't be seen by people who actually register?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Looking in the user_profile table, it's showing 0, 0, 0 for all 3 fields (dob_day, dob_month, dob_year) for install and Admin created users.
     
  5. g0rn

    g0rn Well-Known Member

    These fields represent date of birth. Registration date is in register_date field of xf_user table.
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Getting my dates mixed up there.
    You are of course correct.

    That field is different for all 3 install/Admin create users on my table so it can't be 1970.
    Latest one is showing as 1286542741 which is 2010-10-08 13:59:01.
     
  7. Mike

    Mike XenForo Developer Staff Member

    In library/XenForo/Helper/Criteria.php, change:
    Code:
    case 'days_registered':
    to:
    Code:
    case 'registered_days':
    Grr. :)
     
    Ranger375 likes this.
  8. Ranger375

    Ranger375 Well-Known Member

    Thanks Mike
     

Share This Page