• Resolved Thorsten :-)

    (@per4mance)


    Hi,

    according to your long thread https://www.ads-software.com/support/topic/cant-find-xprofile-field-for-birth-date?replies=31 found something interesting for you.

    1. Use WordPess 4.4.2
    2. Use BuddyPress 2.4.3
    3. Use BuddyPress Xprofile Custom Fields Type 2.4.1
    4. Use bbPress 2.5.8
    5. Use Birthdays Widget 1.7.12

    To 1. Use with WP the German translation
    To 3. Use Type “Birthday Selector” (without checking the checkbox for age in years)

    Issue I found:
    If I choose a birthday with month name “Januar” in English January, I got the following error in your list of birthdays (backend)

    WordPress User lehrer7 (ID: 21) has wrong birthday date in BuddyPress expected format: j. F Y (something like 14. February 2016), but 16. Januar 1980 given.

    But if I change to “August” or “September”, same written in English, everything works fine. Every month in German, written differently as in German, like “M?rz” for March, “Juni” for June I got errors.

    Did you know this?

    Best Regards,
    Thorsten

    https://www.ads-software.com/plugins/birthdays-widget/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Sudavar

    (@sudavar)

    Hello dear user,

    yes it was very interesting and helpful. The problem is that non English text dates (ex. 16 February 2016, not 16/02/2016) can not be translated with the function used till now. After some search I found out that it can be solved
    but need the PHP’s international extension as you can see here the next update will have this functionality.

    Please till then change temporarily your WordPress Date format to a non textual.

    Plugin Author Sudavar

    (@sudavar)

    Version 1.7.13 fixes the problem you mentioned, thank you very much.

    PS: If everything works and you like our work, please consider leaving a rating.

    Thread Starter Thorsten :-)

    (@per4mance)

    Hi,

    great work, just one issue. Selected in widget “Upcoming” and in “Options” “Days with birthdays 30” but got all birthdays within 365 days.

    2. And how can I change the color of the message “Empty Response Message”?

    3. It would be great if a user was clickable for his birthday to send him a personal message. For now it shows only the users name with image.

    Thank you!

    Thread Starter Thorsten :-)

    (@per4mance)

    And it would be a great job too, if I would get the birthday of a user today and the birthdays of the next 5 users, similar too faceback, not depending on the days I can determine.

    Big smile for you!

    Plugin Author Sudavar

    (@sudavar)

    Hi dear user,

    first of all could you provide me a link to your installation?

    * The option “days with birthdays X” will have the effect you asked in your last message. The widget will display the next X days which have birthdays (if you have less than X birthdays, it will essentially display them all – therefore 365 days)
    * On the other hand the option “consecutive days X” will display the birthdays that are within X days from today (usefull if you want to display the birthdays within a month/week etc)
    * For the color of the message, all you have to do is change the CSS rule in file birthdays-widget.css at line 62 affecting the class birthday_error. Or you can go ahead and add a new CSS rule for class birthday_error somewhere else (for example in Jetpack’s Custom CSS)

    Thread Starter Thorsten :-)

    (@per4mance)

    Hi Sudavar,

    please check my new social network website https://www.pragabuch.org/kontakt/

    I changed on line 62 the css color as follows:

    .birthday_error {
        text-align: center;
        font-style: italic;
        color: #cc9900;
    }

    I did this in my custom.css of my theme child and, because it didn’t work, did it a second time directly in your css file. I purched my CDN many times, deleted the browser caches but without any effect on changing the color.

    Thank you for your explanation of displaying birthdays.

    Unfortuneatly cannot rate your product because everytime after sending my rating it jumps to the German WordPress forum and I do not know why. Maybe has to do with the German version of my browser.

    But I want to give you a 5-star rating for support and effort you did!!

    Hint: This is a 5-Star-Guy!!

    Best Regards,
    Thorsten

    Plugin Author Sudavar

    (@sudavar)

    The CSS edit seems to be working.

    And the rating was also posted, thank you.

    Thread Starter Thorsten :-)

    (@per4mance)

    Hi Sudavar,

    that’s very interesting because I do not get the color as you shown in your screenshot now. I deleted the CDN, delted the browser cache but still get the standard color.

    What’s wrong for me?

    Best Regards,
    Thorsten

    Plugin Author Sudavar

    (@sudavar)

    Dear Thorsten,

    I can’t think of anything to suggest, please refer to your host.

    Plugin Author Sudavar

    (@sudavar)

    Now that I visited your site, the color is still the default. Inspecting the CSS rules loaded on my browser I see it’s a caching problem, because at the moment there are two conflicting rules:
    https://eu-amsterdam.per4manceeducati.netdna-cdn.com/wp-content/cache/minify/000000/M9RPyiwqyUhJrCzWLc9MSU8t0U8uLsYQBAA.css
    .birthday_error {
    text-align: center;
    font-style: italic;
    color: #BE1E2D;
    }

    https://eu-amsterdam.per4manceeducati.netdna-cdn.com/wp-content/cache/minify/000000/bZDhCsMwCIRfqFlW2AvZRLaANhKTlb79uqwDW_rz7j71cPRTi3GdsqpbgMiDKlb1QfWU3DjNw_gzpeDmhsxCiXH-82Kt4eEZYwIk_OqDEIIVS994ohZxVh8P9sSDiG1Zarf3ertymktN8_MMMxwooKnxVvqNxUGpF6stYgabUIboKhbWqymb92Z3883wShQ7GprWzB8.css
    .birthday_error {
    text-align: left;
    font-style: italic;
    color: #c90;
    }

    and the first is overwriting the second which is your desired one.

    Hey there,
    thanks for that nice plugin.
    I am experiencing the same problems as the original poster, but with thiese versions:

    1. Use WordPess 4.4.2 with the German translation + Mulitsite
    2. Use BuddyPress 2.5.2
    3. Use BuddyPress Xprofile Custom Fields Type 2.4.4
    4. Use Birthdays Widget 1.7.15

    I tried using the birthdate selector from xprofile fields. I can use a date field instead, but as soon as one birthday is in a Month thats different in german than in english – i.e. Mai / May – Juli / July – I get really nasty PHP error messages and inside the plugin I get the error message:

    Internationalization Functions needed, please install PHP’s extension

    Please help me! I rely on your Plugin, I need to get it to work properly! What can I do?

    Plugin Author Sudavar

    (@sudavar)

    The xprofile birthday fields are saved in the database as datetime value, but when you call the bp_get_profile_field_data function they are returned in WordPress date format (as you select it in Settings->General in wp-admin).

    So if you select the date format to be F j, Y => October 30, 2016
    in German it would be F j, Y => Oktober 30, 2016

    To make it work and convert the German date to a timestamp, I use a function which requires Internationalization Functions to be enabled in PHP,

    You can see with a simple phpinfo() that you don’t have them enabled, so you have to ask your host to enable them and then you should see something like that in phpinfo(): https://ctrlv.in/712508

    Or you can change your WordPress DateTime Format to something that does not include text, but it will affect your whole installation – which sometimes is not desirable.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Bug with BIRTHDAY field translation’ is closed to new replies.