Greeting notifications
-
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!
-
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.
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]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
shortcodeblock.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?
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
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’);<?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.
This code now showing in the widget instead No birthdays
Where is it hardcoded? I will change it there and update after the next plugin update
This code now showing in the widget instead No birthdays
. Anything else required here?
Sorry my bad. I need to change the text of notification but can not find it .
We have this filter
ps_birthday_filter, you can find it in loader.php. Using this you can change the notification text.-
This reply was modified 5 years, 1 month ago by
Prashant Singh.
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
Where is this text hardcoded?
Found
Line 88 loader.php
Thanks! -
This reply was modified 5 years, 1 month ago by
The topic ‘Greeting notifications’ is closed to new replies.