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

Lack of interest Take Activity into Account for Birthdays

Amaury

Well-known member
#1
Based on this thread by @xenBoost Mike, I think it would be nice if those who have been active within a set time of your choice would be shown first. For example, if Amaury 1, Amaury 2, and Amaury 3 all had birthdays and their respective last activities were April 9, 2015, March 16, 2015, and June 6, 2012, Amaury 1 would be shown first.

This would be especially useful on large forums, such as XenForo Community, where many users who have birthdays haven't had activity in years because they only registered and, for whatever reason, that was it -- they were never on again.
 
Last edited:

Daniel Hood

Well-known member
#2
It's a really simple change as well:

/library/XenForo/ControllerPublic/Member.php line 84:
PHP:
$birthdays = $userModel->getBirthdayUsers($month, $day, $memberCriteria, array('limit' => 12));
to
PHP:
$birthdays = $userModel->getBirthdayUsers($month, $day, $memberCriteria, array('limit' => 12, 'order' => 'last_activity'));