Please or Register to create posts and topics.

Receive notification for all new post

PreviousPage 2 of 3Next

I thought the code is the same but… that work! thank you !

Glad to hear! It was almost the same, but I forgot that a part of the hook-name changed from thread to topic.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Hi !
In complement…
It is possible for moderator to receive the mail notification of new user?

It’s just for the admin…

Thanks !

I dont know. This is a WordPress specific default-behavior. You have to ask in their official support forums if their is a plugin for this which allows you to enable notification-messages for this kind of stuff to specific user roles.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Hi!

I looked through this topic and  checked out how to subscribe to get notifications for all the new posts.

But what if I need users who subscribed to Forum , to get the notifications not only about new topics opened, but about new posts into topics of this forum, without subscribig to each topic separately? Are you going to add this feature to be easily managed by GUI? Currently user subscribed to Forum, only receives notification of new topic, but not of new message at existing topic.

Thanks in advance!

Hello @rgn_sss

Maybe I add an option for this in a future update, but it will take a while.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!
Quote from Asgaros on February 22, 2018, 9:08 pm

Hello @rgn_sss

Maybe I add an option for this in a future update, but it will take a while.

Thanks for your response! Am I right that you currently don’t know if you’ll be able to add this in the near future ? ‘Cause for us there is an option to edit this by ourselves , but it might be a bit difficult for moderator to manage if admin is not enable in the moment 🙂

@rgn_sss Yes. The main reason is that I am on a trip during the complete March and will not have time to work on this plugin.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

@asgaros I see.. anyway, thanks for replying. It would be nice if you’d have a time for this in future 😉

Hi all! I have some problem when i add your code @asgaros to function.php.

Fatal error: Uncaught Error: Call to undefined method AsgarosForumNotifications::subscribeTopic() in /var/www/html/wp-content/themes/mesmerize/functions.php:45 Stack trace: #0 /var/www/html/wp-includes/class-wp-hook.php(288): auto_subscribe(119, 61) #1 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /var/www/html/wp-content/plugins/asgaros-forum/includes/forum-content.php(176): do_action('asgarosforum_af...', 119, 61, 'test.powiadomie...', 'test.powiadomie...', 'https://dokumen...') #4 /var/www/html/wp-content/plugins/asgaros-forum/includes/forum-content.php(36): AsgarosForumContent->insert_data() #5 /var/www/html/wp-content/plugins/asgaros-forum/includes/forum.php(298): AsgarosForumContent->do_insertion() #6 /var/www/html/wp-includes/class-wp-hook.php(286): AsgarosForum->prepare(Object(WP)) #7 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #8 /var/www/html/wp-includes/plugi in /var/www/html/wp-content/themes/mesmerize/functions.php on line 45

code in function.php

function auto_subscribe($postID, $topicID) {
    AsgarosForumNotifications::subscribeTopic();
}
add_action('asgarosforum_after_add_topic_submit', 'auto_subscribe', 10, 2);

 

PreviousPage 2 of 3Next