• Resolved Piskatje

    (@piska)


    Hi,

    1. How can I enable birthday greeting notifications? There are not working at the moment. Here is my setting and here

    2. Where can I change the text of birthday greeting notifications?

    3. Is there a way to display 5 birthdays for 3 upcoming days?

    4. I have added a shortcode to a page, but it is not working

    Thank you!

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Prashant Singh

    (@prashantvatsh)

    Hi Piska

    1. Are there members(except you) with the birthday date of today/tomorrow? Need to check with them if they are receiving the notification.

    2. You can translate it through loco translate plugin. Please check this too.

    3. No, we do not have this feature right now.

    4. Please try by adding our widget, if that works properly then try adding the shortcode again in the visual tab(classic editor) of the page, if you are using Gutenberg editor then please add the shortcode using the shortcode block.

    Please let me know if this helped you.

    Thread Starter Piskatje

    (@piska)

    Hi Prashant Singh,
    1. Yes. I did that already. I have 3 member accounts (example). No notifications.
    2. Thanks!
    3.Oke, thanks. It would be great if it will be added:)
    4.Please try by adding our widget, if that works properly. It does
    I have Disabled Gutenberg. It works! But it does not with it. Tried to add it in a code block but the page shows [ps_birthday_list]

    Plugin Author Prashant Singh

    (@prashantvatsh)

    1. Please check if cron jobs are enabled.

    Tried to add it in a code block

    It will not work with code block. Please use shortcode block.

    Thread Starter Piskatje

    (@piska)

    1. Solved. It works!
    4. Solved. It works!

    I have tried to change the text of notifications. Created this plugin:

    <?php

    /*

    Plugin Name: My customizations (mini-plugin)

    */

    add_filter(‘private_title_format’, ‘ntwb_remove_private_title’);
    function ntwb_remove_private_title($title) {
    return ‘%s’;
    }

    add_filter(‘bp_birthday_empty_message’, ‘ps_change_birthday_message’);
    function ps_change_birthday_message(){
    _e(‘We wish you a very happy birthday! Your teachers’, ‘bp-birthday-greetings’);
    }

    ?>

    But I get There has been a critical error on this website. Could you please help me with this?

    Plugin Author Prashant Singh

    (@prashantvatsh)

    Please enable WP_DEBUG so that we get to know what’s the actual error.

    https://ww.wp.xz.cn/support/article/debugging-in-wordpress/#wp_debug

    Thread Starter Piskatje

    (@piska)

    Hi
    I added yor code code (unchanged) `add_filter(‘bp_birthday_empty_message’, ‘ps_change_birthday_message’);
    function ps_change_birthday_message(){
    _e(‘Your Changed Message Here’, ‘bp-birthday-greetings’);
    }`

    Error:

    Parse error: syntax error, unexpected ‘Changed’ (T_STRING), expecting ‘)’ in /home/xxxx/domains/xxxxxxx/public_html/xxxxxx/wp-content/plugins/Mijn-customizations/index.php on line 15

    Here is the line 15:
    _e(‘Your Changed Message Here’, ‘bp-birthday-greetings’);

    • This reply was modified 5 years, 1 month ago by Piskatje.
    • This reply was modified 5 years, 1 month ago by Piskatje.
    Plugin Author Prashant Singh

    (@prashantvatsh)

    
    <?php
    /*
    *Plugin Name: My customizations (mini-plugin)
    */
    add_filter('bp_birthday_empty_message', 'ps_change_birthday_message');
    function ps_change_birthday_message(){
    	_e('We wish you a very happy birthday! Your teachers', 'bp-birthday-greetings');
    }

    Please try this code.

    Thread Starter Piskatje

    (@piska)

    This code now showing in the widget instead No birthdays

    Thread Starter Piskatje

    (@piska)

    Where is it hardcoded? I will change it there and update after the next plugin update

    Plugin Author Prashant Singh

    (@prashantvatsh)

    This code now showing in the widget instead No birthdays

    . Anything else required here?

    Thread Starter Piskatje

    (@piska)

    Sorry my bad. I need to change the text of notification but can not find it .

    Plugin Author Prashant Singh

    (@prashantvatsh)

    We have this filter ps_birthday_filter , you can find it in loader.php. Using this you can change the notification text.

    Thread Starter Piskatje

    (@piska)

    Sorry, I do not know how to make code for this filter.
    Could you please give an example for this text?

    We wish you a very happy birthday! Your teachers

    Thread Starter Piskatje

    (@piska)

    Where is this text hardcoded?

    Thread Starter Piskatje

    (@piska)

    Found
    Line 88 loader.php
    Thanks!

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Greeting notifications’ is closed to new replies.