Fixed  Trophy Awarded when Criteria Wasn't met

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
 
I think admin-created (or install-created) users may have a registration date of 0 (1970). Will have to check that.
 
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.
 
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.
These fields represent date of birth. Registration date is in register_date field of xf_user table.
 
These fields represent date of birth. Registration date is in register_date field of xf_user table.
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.
 
In library/XenForo/Helper/Criteria.php, change:
Code:
case 'days_registered':
to:
Code:
case 'registered_days':
Grr. :)
 
Top Bottom