Fixed Birthday widget not showing some users

CFMack

Active member
I enabled the Today's birthdays widget in Forum list: Sidebar, position 1. A member's birthday is today, however the widget is not showing up.
 
I’ll check the code but as far as I recall it should be the same.

So I can only suggest trying to move the widget to other positions to see if that makes it show.

Also try it on an unedited default XF style.
 
Okay. I did try to move it to other positions, and even different positions within Forum list: Sidebar.

Thanks, Chris.
 
Just fixed it, if you'd like to patch it yourself, you need to edit src/XF/Widget/Birthdays.php.

Find:
PHP:
$userFinder = $this->finder('XF:User')
   ->isBirthday()
   ->isValidUser(true)
   ->order('username');

Replace with:
PHP:
$userFinder = $this->finder('XF:User')
   ->isBirthday()
   ->isRecentlyActive(365)
   ->isValidUser()
   ->order('username');
The previous code was applying a "recently active" constraint of 180 days. We had changed it to 365 days for the member stat, but must have missed it from the Widget.
 
Back
Top Bottom