Please or Register to create posts and topics.

Subscribe to ALL topics

Page 1 of 2Next

Is it possible for our members, who choose to, to subscribe to all topics instead of individual  topics?

Hello Hamland,

this is not possible at the moment. Currently it is only possible to get notifications about all new topics.

But there is a hook called asgarosforum_after_add_post_submit. This hook can be used to execute custom logic after a topic got created. This could be used to automatically inform all users about new posts.

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

Hello Thomas,
I would like to inform all users in my internal forum about new posts via email automatically. How do I do it? How is that with the hook exactly?
Thanks for a tip.

Hello jleidner,

the hook has to be placed inside your themes functions.php file and can look like this:

function submit_info($postID, $topicID) {
  // Get all users of your site.
  // Example: https://codex.wordpress.org/Function_Reference/get_users
  
  // Send a mail for all users.
  // Example: https://developer.wordpress.org/reference/functions/wp_mail/
}
add_action('asgarosforum_after_add_post_submit', 'submit_info', 10, 2);

As you can see there has to be implemented own logic because this behavior is not possible yet with the forum by default.

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 November 20, 2017, 2:39 pm

Hello Hamland,

this is not possible at the moment. Currently it is only possible to get notifications about all new topics.

But there is a hook called asgarosforum_after_add_post_submit. This hook can be used to execute custom logic after a topic got created. This could be used to automatically inform all users about new posts.

How do I set the notification for new topics?

As an administrator you have to enable the “Notify site owner about new topics” option in the forum settings.

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 December 5, 2017, 7:09 pm

As an administrator you have to enable the “Notify site owner about new topics” option in the forum settings.

So it’s not an option for regular forum users?

Users have an option for this in their WordPress profile as well, called “Notify about new topics”.

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 December 5, 2017, 8:21 pm

Users have an option for this in their WordPress profile as well, called “Notify about new topics”.

How does that get accessed if one is using a front end profile system?

WordPress doesnt have front-end profiles by default, so this functionality is provided by third-party plugins. There are dozens of extensions which bringing features like this to WordPress which makes it impossible for me to add code to the plugin to support them. If I support one, other people will start to ask if I can support other plugins as well. You should contact the author of your front-end-profile plugin and ask him if his plugin provides hook so you can add custom code to make this subscription-option available inside that plugin as well.

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