• 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

Ranger375

Well-known member
#1
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
 

Mike

XenForo developer
Staff member
#2
I think admin-created (or install-created) users may have a registration date of 0 (1970). Will have to check that.
 

Brogan

XenForo moderator
Staff member
#4
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.
 

g0rn

Well-known member
#5
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.
 

Brogan

XenForo moderator
Staff member
#6
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.
 

Mike

XenForo developer
Staff member
#7
In library/XenForo/Helper/Criteria.php, change:
Code:
case 'days_registered':
to:
Code:
case 'registered_days':
Grr. :)