CFMack Active member May 4, 2018 #1 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 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.
CFMack Active member May 4, 2018 #5 I just ran a few of them. This is what the template looks like: Last edited: May 4, 2018
Chris D XenForo developer Staff member May 4, 2018 #6 ozzy47 said: Does the cron run at midnight to populate the widget? Click to expand... It doesn’t use a cron. CFMack said: I just ran a few of them. This is what the template looks like: View attachment 174622 Click to expand... Do they appear under Birthdays under the Notable members section?
ozzy47 said: Does the cron run at midnight to populate the widget? Click to expand... It doesn’t use a cron. CFMack said: I just ran a few of them. This is what the template looks like: View attachment 174622 Click to expand... Do they appear under Birthdays under the Notable members section?
Chris D XenForo developer Staff member May 4, 2018 #8 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.
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.
CFMack Active member May 4, 2018 #9 Okay. I did try to move it to other positions, and even different positions within Forum list: Sidebar. Thanks, Chris.
Okay. I did try to move it to other positions, and even different positions within Forum list: Sidebar. Thanks, Chris.
Chris D XenForo developer Staff member May 4, 2018 #11 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.
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.
Chris D XenForo developer Staff member May 4, 2018 #14 Yes it will. Won't be too long until the next release.