Support Forum

Birthdays Plugin Displays All Incoming Birthdays

ME merkaba5
merkaba5
Member

Hello, i and my bad english want to ask you a question again ;-)

So, i have a problem with plugin – in footer shows ALL incoming birthdays. That is, 15 users reported about birthdays – there are all displayed; 30 users reported – 30 birthdays is displayed…

In settings, field “Number of days to show upcoming birthdays:” set to 14. If i change this (7, 30, 5, etc.) – nothing changes.

Today birthdays shows without any problems.

Thanks in advance!

 

11 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

I will need to take a look at the code and do some tests… will come back on it.

YS Yellow Swordfish
Yellow Swordfish
Member

I am unable to replicate this actual problem but… having said that, I am also not getting expected results. I need to double check data and do more research. To cover this I am opening a bug ticket anyway so we investigate this properly.

YS Yellow Swordfish
Yellow Swordfish
Member

OK – got my data sorted but afraid that no – I can not replicate this issue. Are your users putting their birthdays in through their profile as they should?

ME merkaba5
merkaba5
Member

Yes, users putting their birthdays in forum profile (access to wordpress profile page closed). In database wp_usermeta birthdays are displayed. CRON tasks working normally.

 

YS Yellow Swordfish
Yellow Swordfish
Member

Steve (Mr Papa) wrote the plugin and I am talking to him but he is away this week. So he will probably have a question or two to ask. The ticket is still open.

ME merkaba5
merkaba5
Member

I find a solution of this problem – date format changed to “d-m-Y” instead of correct “Y-m-d”. So, i edited it and all works fine now.

By the by, if you did a possibility to change this date format, it would be wonderful. My users more comfortable to use date format “d-m-Y” instead of “Y-m-d”.

In any case, thanks!

YS Yellow Swordfish
Yellow Swordfish
Member

how did it change in the first place? It should be a fixed format?

ME merkaba5
merkaba5
Member

Yellow Swordfish said
how did it change in the first place? It should be a fixed format?

I just compared original plugin files with those that have been installed and I have discovered this fact. I didn’t change anything before.

I hope, i understand your question correctly.

MP Mr Papa
Mr Papa
Member

we’re you simply entering the date in the other format??

ME merkaba5
merkaba5
Member

/wp-content/sp-resources/forum-plugins/birthdays/library/sp-birthdays-components.php

line 35: 

dateFormat: "yy-mm-dd",

line 55: 

update_user_meta($thisUser, 'sp_birthday', date_format($date, 'Y-m-d'));

I changed “dd-mm-yy” & “d-m-Y” to “yy-mm-dd” & “Y-m-d” as in the original file and it worked.

MP Mr Papa
Mr Papa
Member

well, we certainly wouldnt change it to that…  that may be an acceptable date format for you, but not for a lot of the world…

there is a ticket open to see if we can use the other forum date settings for that one…  but need to make sure that the jquery datepicker library can support that…