XF 2.2 How to search for oldest members?

Hi,

I've installed Simple Stats and doesn't really do what I want. I am searching for a way to find the oldest member on our forum.

Any help would be great!

PRE.
 
I’m not sure where you want me to post after locking my post in resources.

 
I don't think they're looking for support for that add-on, I think they're saying that add-on doesn't do what they're looking for and are looking for a recommendation on how to find what they are looking for?
 
oldest, meaning age?
or oldest meaning, joined your forum first?

age, only possible if you required birthday. And spammers tend to bloat it out with 100 year olds, so you'll need to de-dupe those folks out (perhaps with post count > 10 ?)
something like:
Code:
SELECT user_id, dob_month, dob_day, dob_year FROM `xf_user_profile` where dob_year > 0 order by dob_year asc, dob_month asc, dob_day ASC
could get you started

oldest member, well, you're probably member 1, find member id 2.
 
Back
Top Bottom