Please or Register to create posts and topics.

Receive notification for all new post

PreviousPage 3 of 3

@marcin123 The code changed a little bit. Please try the following:

function auto_subscribe($postID, $topicID) {
    global $asgarosforum;
    $asgarosforum->notifications->subscribe_topic();
}
add_action('asgarosforum_after_add_topic_submit', 'auto_subscribe', 10, 2);

 

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

Hello Asgaros, thank you for the great plugin. It is working very well in my website for a few weeks now.

I need notification for all new posts, but when I use this function on my functions.php I have a white screen. It crashes the website.

function custom_mails($mails) {
  $mails[] = 'mymail@example.com';
  return $mails;
}
add_filter('asgarosforum_subscriber_mails_new_post', 'custom_mails');

Am I missing something? Thanks for the help.

Hello @fcmiao

You dont need this custom code anymore. Just visit your subscription-overview. You will find some options there which allow you to get notified about all new topics and posts. 🙂

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

Hi @asgaros! Thank you very much for reply me.

I look for it exhaustively, but couldn’t find this option.

I have notice that subscription area is missing in my forum.

Will look into it, tks!

Hello @fcmiao

Have you enabled the subscriptions-option in the settings? After enabling this option, you should find the subscription-overview in the main-navigation next to the My Profile and Members links.

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

Yes, I did it now.

Its working fine, thank you!

Asgaros has reacted to this post.
Asgaros
PreviousPage 3 of 3